summaryrefslogtreecommitdiffstats
path: root/source/libsmb/ntlmssp.c
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
commit3e4da5541c24b3c3c5104fc5120a9be8a2f9ae69 (patch)
treeffe1ebd889eca6cc552545c3bb257904a49a83ca /source/libsmb/ntlmssp.c
parentecca467e463ef5c9acd48ee0a5f446755bd2f306 (diff)
downloadsamba-3e4da5541c24b3c3c5104fc5120a9be8a2f9ae69.tar.gz
samba-3e4da5541c24b3c3c5104fc5120a9be8a2f9ae69.tar.xz
samba-3e4da5541c24b3c3c5104fc5120a9be8a2f9ae69.zip
r18005: The ntlmssp fix is not correct yet, working on it
Diffstat (limited to 'source/libsmb/ntlmssp.c')
-rw-r--r--source/libsmb/ntlmssp.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source/libsmb/ntlmssp.c b/source/libsmb/ntlmssp.c
index 6a44809f9ea..70fcd24e764 100644
--- a/source/libsmb/ntlmssp.c
+++ b/source/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);