1
0
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 against winbind with failed require-membership-of

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:
Samuel Cabrero
2018-08-31 18:01:17 +02:00
committed by Noel Power
parent 377e87a234
commit caa505302f
2 changed files with 9 additions and 2 deletions

View File

@ -169,3 +169,12 @@ class NTLMAuthHelpersTests(NTLMAuthTestCase):
server_helper="gss-spnego",
server_use_winbind=True)
self.assertTrue(ret)
ret = self.run_helper(client_username=self.username,
client_password=self.password,
client_domain=self.domain,
require_membership=self.bad_group_sid,
client_helper="gss-spnego-client",
server_helper="gss-spnego",
server_use_winbind=True)
self.assertFalse(ret)