summaryrefslogtreecommitdiff
path: root/python/samba/tests
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2024-07-12 19:38:40 +0200
committerStefan Metzmacher <metze@samba.org>2024-07-17 10:12:36 +0000
commit9afe7b7a0f248d2d31dfc2a13bd61906d113c932 (patch)
tree8c061f9500c3372e816cb1e41f5f9d64aa0976dd /python/samba/tests
parent8e35933ceb5bcede2b45d8223766bd8b2ebd7ef1 (diff)
downloadsamba-9afe7b7a0f248d2d31dfc2a13bd61906d113c932.tar.gz
samba-9afe7b7a0f248d2d31dfc2a13bd61906d113c932.tar.bz2
samba-9afe7b7a0f248d2d31dfc2a13bd61906d113c932.zip
s3:passdb: don't clear the LM HASH without a password change
Updating things like the bad pwd count should not clear the stored LM HASH with 'lanman auth = no'. This allows testing with 'lanman auth = no' and 'lanman auth = yes'. BUG: https://bugzilla.samba.org/show_bug.cgi?id=9705 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'python/samba/tests')
-rw-r--r--python/samba/tests/s3passdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/tests/s3passdb.py b/python/samba/tests/s3passdb.py
index b584e07fc98..eac3be6163e 100644
--- a/python/samba/tests/s3passdb.py
+++ b/python/samba/tests/s3passdb.py
@@ -90,7 +90,7 @@ class PassdbTestCase(TestCaseInTempDir):
self.assertEqual([-1 for i in range(21)], user.hours)
self.assertEqual(21, user.hours_len)
self.assertEqual(9223372036854775807, user.kickoff_time)
- self.assertEqual(None, user.lanman_passwd)
+ self.assertEqual(b'U)\x02\x03\x1b\xed\xe9\xef\xaa\xd3\xb45\xb5\x14\x04\xee', user.lanman_passwd)
self.assertEqual(9223372036854775807, user.logoff_time)
self.assertEqual(0, user.logon_count)
self.assertEqual(168, user.logon_divs)