From: Samuel Cabrero Date: Fri, 31 Aug 2018 14:05:34 +0000 (+0200) Subject: tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth with NTLMSSP client and... X-Git-Tag: tdb-1.3.17~245 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=d3fd3d01f19c227d78f9ba77660c2e73e067aab2 tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth with NTLMSSP client and gss-spnego server Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero Reviewed-by: Noel Power Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/ntlm_auth.py b/python/samba/tests/ntlm_auth.py index 4bfb37e7a55..70dd1b2dcd7 100644 --- a/python/samba/tests/ntlm_auth.py +++ b/python/samba/tests/ntlm_auth.py @@ -66,3 +66,21 @@ class NTLMAuthHelpersTests(NTLMAuthTestCase): client_domain=self.domain, server_use_winbind=True) self.assertTrue(ret) + + def test_ntlmssp_gss_spnego(self): + """ ntlm_auth with NTLMSSP client and gss-spnego server """ + + username = "foo" + password = "secret" + domain = "fOo" + + ret = self.run_helper(client_username=username, + client_password=password, + client_domain=domain, + server_username=username, + server_password=password, + server_domain=domain, + client_helper="ntlmssp-client-1", + server_helper="gss-spnego", + server_use_winbind=False) + self.assertTrue(ret) diff --git a/source3/script/tests/test_ntlm_auth_s3.sh b/source3/script/tests/test_ntlm_auth_s3.sh index 3baed4acfb1..f0646276d04 100755 --- a/source3/script/tests/test_ntlm_auth_s3.sh +++ b/source3/script/tests/test_ntlm_auth_s3.sh @@ -269,7 +269,6 @@ EOF } # This should work even with NTLMv2 -testit "ntlm_auth with NTLMSSP client and gss-spnego server" $PYTHON $SRC3DIR/torture/test_ntlm_auth.py $NTLM_AUTH $ADDARGS --client-domain=fOo --server-domain=fOo --client-helper=ntlmssp-client-1 --server-helper=gss-spnego || failed=`expr $failed + 1` testit "ntlm_auth with NTLMSSP gss-spnego-client and gss-spnego server" $PYTHON $SRC3DIR/torture/test_ntlm_auth.py $NTLM_AUTH $ADDARGS --client-domain=fOo --server-domain=fOo --client-helper=gss-spnego-client --server-helper=gss-spnego || failed=`expr $failed + 1` testit "ntlm_auth with NTLMSSP gss-spnego-client and gss-spnego server against winbind" $PYTHON $SRC3DIR/torture/test_ntlm_auth.py $NTLM_AUTH --client-username=$USERNAME --client-domain=$DOMAIN --client-password=$PASSWORD --server-use-winbindd --client-helper=gss-spnego-client --server-helper=gss-spnego $ADDARGS || failed=`expr $failed + 1`