s3:passdb: don't clear the LM HASH without a password change
commit9afe7b7a0f248d2d31dfc2a13bd61906d113c932
authorStefan Metzmacher <metze@samba.org>
Fri, 12 Jul 2024 17:38:40 +0000 (12 19:38 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 17 Jul 2024 10:12:36 +0000 (17 10:12 +0000)
tree8c061f9500c3372e816cb1e41f5f9d64aa0976dd
parent8e35933ceb5bcede2b45d8223766bd8b2ebd7ef1
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>
python/samba/tests/s3passdb.py
selftest/knownfail.d/samba3.blackbox.smb1_lanman_plaintext
source3/passdb/pdb_get_set.c