diff options
author | Jeremy Allison <jra@samba.org> | 2006-09-01 06:01:16 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2006-09-01 06:01:16 +0000 |
commit | d80105970b029d5526190fbf534f0442a1efae32 (patch) | |
tree | d849acbcdb9ecececca13ddfd52eed19d8b8c485 | |
parent | 52c0bbd2f85ceb83f58764ac171e0a4d57dcd2e3 (diff) | |
download | samba-d80105970b029d5526190fbf534f0442a1efae32.tar.gz samba-d80105970b029d5526190fbf534f0442a1efae32.tar.xz samba-d80105970b029d5526190fbf534f0442a1efae32.zip |
r17985: Ensure the production branch gets Vl's fix.
------------------------------------------------
To be honest, I have NO idea whatsoever what this does, but it fixes what I
have been able to reproduce with smbtorture4 for bug number 4059. It's too
late here now to check with W2k native, I'll do that tomorrow or over the
weekend. I'll then also check in a samba4 torture test to walk this from now
on.
Volker
------------------------------------------------
-rw-r--r-- | source/libsmb/ntlmssp.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source/libsmb/ntlmssp.c b/source/libsmb/ntlmssp.c index 986fa8cce9f..699454aee01 100644 --- a/source/libsmb/ntlmssp.c +++ b/source/libsmb/ntlmssp.c @@ -749,13 +749,14 @@ static NTSTATUS ntlmssp_server_auth(struct ntlmssp_state *ntlmssp_state, SMBsesskeygen_lm_sess_key(lm_session_key.data, ntlmssp_state->lm_resp.data, session_key.data); DEBUG(10,("ntlmssp_server_auth: Created NTLM session key.\n")); - dump_data_pw("LM session key:\n", session_key.data, session_key.length); } else { - /* use the key unmodified - it's - * probably a NULL key from the guest - * login */ - session_key = lm_session_key; + static const uint8 zeros[24] = { 0, }; + SMBsesskeygen_lm_sess_key( + lm_session_key.data, zeros, + session_key.data); } + dump_data_pw("LM session key:\n", session_key.data, + session_key.length); } else { DEBUG(10,("ntlmssp_server_auth: Failed to create NTLM session key.\n")); session_key = data_blob(NULL, 0); |