nsswtich: Add negative tests for authentication with wbinfo
authorAndreas Schneider <asn@samba.org>
Mon, 20 Mar 2017 11:22:44 +0000 (12:22 +0100)
committerUri Simchoni <uri@samba.org>
Wed, 22 Mar 2017 09:58:58 +0000 (10:58 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12708

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Autobuild-User(master): Uri Simchoni <uri@samba.org>
Autobuild-Date(master): Wed Mar 22 10:58:58 CET 2017 on sn-devel-144

nsswitch/tests/test_wbinfo.sh

index 69cc437f8216583015d3d295029bd4aabcb46f11..cfe582df0684c4a342b5b0a5882189b00560d59a 100755 (executable)
@@ -254,6 +254,10 @@ testit "wbinfo -K against $TARGET with domain creds" $wbinfo --krb5ccname=$KRB5C
 
 testit "wbinfo --separator against $TARGET" $wbinfo --separator || failed=`expr $failed + 1`
 
+testit_expect_failure "wbinfo -a against $TARGET with invalid password" $wbinfo -a "$DOMAIN/$USERNAME%InvalidPassword" && failed=`expr $failed + 1`
+
+testit_expect_failure "wbinfo -K against $TARGET with invalid password" $wbinfo -K "$DOMAIN/$USERNAME%InvalidPassword" && failed=`expr $failed + 1`
+
 rm -f $KRB5CCNAME_PATH
 
 exit $failed