diff options
author | Andreas Schneider <asn@samba.org> | 2017-03-20 12:22:44 +0100 |
---|---|---|
committer | Uri Simchoni <uri@samba.org> | 2017-03-22 10:58:58 +0100 |
commit | e7d1d8c49322a131e7ca1993f9956f0bddcaff3c (patch) | |
tree | ed7ac22981ea7a133f9a23cb569bc587eb1c3d93 /nsswitch/tests | |
parent | e2028837b958618a66449a77ee628e4e176e521e (diff) | |
download | samba-e7d1d8c49322a131e7ca1993f9956f0bddcaff3c.tar.gz |
nsswtich: Add negative tests for authentication with wbinfo
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
Diffstat (limited to 'nsswitch/tests')
-rwxr-xr-x | nsswitch/tests/test_wbinfo.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nsswitch/tests/test_wbinfo.sh b/nsswitch/tests/test_wbinfo.sh index 69cc437f821..cfe582df068 100755 --- a/nsswitch/tests/test_wbinfo.sh +++ b/nsswitch/tests/test_wbinfo.sh @@ -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 |