mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
r3953: the lm verifier key in passwoed ChangePasswordUser3 is based on the nt
hash, not the lm hash
This commit is contained in:
parent
f70e8f02d6
commit
8d4f0dc7d0
@ -332,7 +332,7 @@ NTSTATUS samr_ChangePasswordUser3(struct dcesrv_call_state *dce_call,
|
||||
/* check LM verifier */
|
||||
if (lm_pwd && r->in.lm_verifier != NULL) {
|
||||
E_deshash(new_pass, new_lm_hash);
|
||||
E_old_pw_hash(new_lm_hash, lm_pwd->hash, lm_verifier.hash);
|
||||
E_old_pw_hash(new_nt_hash, lm_pwd->hash, lm_verifier.hash);
|
||||
if (memcmp(lm_verifier.hash, r->in.lm_verifier->hash, 16) != 0) {
|
||||
status = NT_STATUS_WRONG_PASSWORD;
|
||||
goto failed;
|
||||
|
Loading…
x
Reference in New Issue
Block a user