s4-auth: For LDAP simple bind, fall back to checking the ENCTYPE_AES256_CTS_HMAC_SHA1...
authorAndrew Bartlett <abartlet@samba.org>
Fri, 10 Jun 2022 00:47:01 +0000 (12:47 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 26 Jun 2022 22:10:29 +0000 (22:10 +0000)
commit6029e2250c4dc837ed4f6b4613f988ae6dff49e3
tree5b742c574675399c9a9b37be4a70310598bd2a3c
parent18f2a6b231ffc4318f7f7e00f81d2815f7ebe9eb
s4-auth: For LDAP simple bind, fall back to checking the ENCTYPE_AES256_CTS_HMAC_SHA1_96 if stored

Since we don't store a salt per-key, but only a single salt, when we do
not have the NT hash in the unicodePwd (eg ntlm auth = disabled), the check
will fail for a previous password if the account was renamed prior to a
newer password being set.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
auth/common_auth.h
source4/auth/ntlm/auth_sam.c
source4/auth/ntlm/wscript_build