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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user