Skip to content

Commit

Permalink
nsswtich: Add negative tests for authentication with wbinfo
Browse files Browse the repository at this point in the history
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12708

Signed-off-by: Andreas Schneider <[email protected]>
Reviewed-by: Uri Simchoni <[email protected]>

Autobuild-User(master): Uri Simchoni <[email protected]>
Autobuild-Date(master): Wed Mar 22 10:58:58 CET 2017 on sn-devel-144
  • Loading branch information
cryptomilk authored and urisimchoni committed Mar 22, 2017
1 parent e202883 commit e7d1d8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nsswitch/tests/test_wbinfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e7d1d8c

Please sign in to comment.