1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4:kdc: Correctly extract older NT hash

Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Jo Sutton 2024-04-11 17:17:54 +12:00 committed by Jo Sutton
parent c6fec5156f
commit 9149d1d338

View File

@ -689,7 +689,7 @@ krb5_error_code samba_kdc_message2entry_keys(krb5_context context,
old_hash = &ntPwdHistory[1];
}
if (num_ntPwdHistory > 2) {
older_hash = &ntPwdHistory[1];
older_hash = &ntPwdHistory[2];
}
sc_val = ldb_msg_find_ldb_val(msg, "supplementalCredentials");