1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-19 12:23:49 +03:00

ntlm_auth: Adapt --diagnostics mode to expect that the DC does not support LANMAN by default

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Andrew Bartlett
2022-02-17 17:50:43 +13:00
parent 4234e9b05f
commit d0b922bd51
5 changed files with 143 additions and 68 deletions

View File

@@ -327,3 +327,16 @@ class NTLMAuthHelpersTests(NTLMAuthTestCase):
self.check_exit_code(cmd_line, 0)
except BlackboxProcessError as e:
self.fail(e)
def test_diagnostics_lm(self):
""" ntlm_auth diagnostics """
cmd_line = [self.ntlm_auth_path,
"--username", self.username,
"--password", self.password,
"--domain", self.domain,
"--diagnostics",
"--request-lm-key"]
try:
self.check_exit_code(cmd_line, 0)
except BlackboxProcessError as e:
self.fail(e)