Skip to content

Commit

Permalink
[CIFS] Fix SMB uid in NTLMSSP authenticate request
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steve French committed May 6, 2009
1 parent 0b3cc85 commit 844823c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs/cifs/sess.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,10 @@ CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, int first_time,
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;
Expand Down

0 comments on commit 844823c

Please sign in to comment.