5 Usage: test_ntlm_auth_s3.sh PYTHON SRC3DIR NTLM_AUTH
19 incdir=`dirname $0`/../../../testprogs/blackbox
22 SID=`eval $BINDIR/wbinfo -n $USERNAME | cut -d ' ' -f1`
23 BADSID=`eval $BINDIR/wbinfo -n $USERNAME | cut -d ' ' -f1 | sed 's/..$//'`
27 test_ntlm_server_1_check_winbind_output_fail()
29 tmpfile=$PREFIX/ntlm_commands
31 # This isn't the correct password
33 LANMAN-Challenge: 0123456789abcdef
34 NT-Response: 25a98c1c31e81847466b29b2df4680f39958fb8c213a9cc6
37 Request-User-Session-Key: Yes
40 cmd='$NTLM_AUTH "$@" --helper-protocol=ntlm-server-1 < $tmpfile 2>&1'
46 if [ $ret != 0 ] ; then
53 echo "$out" | grep "Authenticated: No" >/dev/null 2>&1
56 # failed to authenticate .. success
59 echo "incorrectly gave a successful authentication"
64 # This should work even with NTLMv2
65 testit "ntlm_auth ntlm-server-1 with incorrect fixed password against winbind" test_ntlm_server_1_check_winbind_output_fail || failed=`expr $failed + 1`