Преглед на файлове

[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>
Steve French преди 16 години
родител
ревизия
844823cb82
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      fs/cifs/sess.c

+ 4 - 0
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;