mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth with NTLMSSP gss-spnego-client and gss-spnego server
Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Noel Power
parent
d3fd3d01f1
commit
c9a5bf3c82
@ -84,3 +84,21 @@ class NTLMAuthHelpersTests(NTLMAuthTestCase):
|
||||
server_helper="gss-spnego",
|
||||
server_use_winbind=False)
|
||||
self.assertTrue(ret)
|
||||
|
||||
def test_gss_spnego(self):
|
||||
""" ntlm_auth with NTLMSSP gss-spnego-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="gss-spnego-client",
|
||||
server_helper="gss-spnego",
|
||||
server_use_winbind=False)
|
||||
self.assertTrue(ret)
|
||||
|
Reference in New Issue
Block a user