summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-09-02 19:18:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:39:47 -0500
commitbd5fca847a33ddef7d73ad8c6932ee2f6685054a (patch)
treeaf4ecc0b06af7cc73574fe01bfb0c5f962798486 /source3
parentd0bbe3751a2bc23fc9fa1428423ef2856fb9868e (diff)
downloadsamba-bd5fca847a33ddef7d73ad8c6932ee2f6685054a.tar.gz
samba-bd5fca847a33ddef7d73ad8c6932ee2f6685054a.tar.bz2
samba-bd5fca847a33ddef7d73ad8c6932ee2f6685054a.zip
r18005: The ntlmssp fix is not correct yet, working on it
(This used to be commit 3e4da5541c24b3c3c5104fc5120a9be8a2f9ae69)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/ntlmssp.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c
index 6a44809f9e..70fcd24e76 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);