summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-25 04:01:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:07 -0500
commita99bf332940f48ae0a503ad6a4909c490626f612 (patch)
tree83abeae1876c2346cbf8eebad7ed5a0571f51200 /source4/rpc_server
parentcf91ad8122055bb5be4906fe89dc007ab44326de (diff)
downloadsamba-a99bf332940f48ae0a503ad6a4909c490626f612.tar.gz
samba-a99bf332940f48ae0a503ad6a4909c490626f612.tar.bz2
samba-a99bf332940f48ae0a503ad6a4909c490626f612.zip
r3953: the lm verifier key in passwoed ChangePasswordUser3 is based on the nt
hash, not the lm hash (This used to be commit 8d4f0dc7d0745fc86fd43205b21d846acdc1d8c7)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/samr/samr_password.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/samr/samr_password.c b/source4/rpc_server/samr/samr_password.c
index 745d2cfc05..787061602c 100644
--- a/source4/rpc_server/samr/samr_password.c
+++ b/source4/rpc_server/samr/samr_password.c
@@ -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;