From: Andreas Schneider Date: Mon, 20 Mar 2017 11:22:44 +0000 (+0100) Subject: nsswtich: Add negative tests for authentication with wbinfo X-Git-Tag: tdb-1.3.13~408 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7d1d8c49322a131e7ca1993f9956f0bddcaff3c;p=thirdparty%2Fsamba.git nsswtich: Add negative tests for authentication with wbinfo BUG: https://bugzilla.samba.org/show_bug.cgi?id=12708 Signed-off-by: Andreas Schneider Reviewed-by: Uri Simchoni Autobuild-User(master): Uri Simchoni Autobuild-Date(master): Wed Mar 22 10:58:58 CET 2017 on sn-devel-144 --- 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