aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2009-05-06 00:48:30 +0000
committerSteve French <sfrench@us.ibm.com>2009-05-06 00:48:30 +0000
commit844823cb822932d2c599abf38692e3d6a5b5a320 (patch)
treecde5759733879247cdc88cd21d0ca404f8b77033 /fs
parent0b3cc858003b79b6c66ad79415ead907cbe4074e (diff)
[CIFS] Fix SMB uid in NTLMSSP authenticate request
We were not setting the SMB uid in NTLMSSP authenticate request which could lead to INVALID_PARAMETER error on 2nd session setup. Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/sess.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c
index e68744e169b..897a052270f 100644
--- a/fs/cifs/sess.c
+++ b/fs/cifs/sess.c
@@ -822,6 +822,10 @@ ssetup_ntlmssp_authenticate:
nls_cp,
first_time);
iov[1].iov_len = blob_len;
+ /* Make sure that we tell the server that we
+ are using the uid that it just gave us back
+ on the response (challenge) */
+ smb_buf->Uid = ses->Suid;
} else {
cERROR(1, ("invalid phase %d", phase));
rc = -ENOSYS;