From: Volker Lendecke Date: Sat, 2 Sep 2006 19:18:49 +0000 (+0000) Subject: r18005: The ntlmssp fix is not correct yet, working on it X-Git-Tag: samba-4.0.0alpha6~801^2~7744 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd5fca847a33ddef7d73ad8c6932ee2f6685054a;p=thirdparty%2Fsamba.git r18005: The ntlmssp fix is not correct yet, working on it (This used to be commit 3e4da5541c24b3c3c5104fc5120a9be8a2f9ae69) --- diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c index 6a44809f9ea..70fcd24e764 100644 --- a/source3/libsmb/ntlmssp.c +++ b/source3/libsmb/ntlmssp.c @@ -816,14 +816,13 @@ 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 { - static const uint8 zeros[24] = { 0, }; - SMBsesskeygen_lm_sess_key( - lm_session_key.data, zeros, - session_key.data); + /* use the key unmodified - it's + * probably a NULL key from the guest + * login */ + session_key = lm_session_key; } - 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);