]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Set UID in sess_auth_rawntlmssp_authenticate too
authorSachin Prabhu <sprabhu@redhat.com>
Wed, 3 Dec 2014 12:26:36 +0000 (12:26 +0000)
committerSteve French <steve.french@primarydata.com>
Mon, 8 Dec 2014 05:43:02 +0000 (23:43 -0600)
commitee9bbf465d8bb82ff2081834cb53a0ea7574c423
tree70249e88b971ed2a70cc4fb788c7b86d4a37cc40
parent0b456f04bcdf5b1151136adaada158bfc26f1be7
Set UID in sess_auth_rawntlmssp_authenticate too

A user complained that they were unable to login to their cifs share
after a kernel update. From the wiretrace we can see that the server
returns different UIDs as response to NTLMSSP_NEGOTIATE and NTLMSSP_AUTH
phases.

With changes in the authentication code, we no longer set the
cifs_sess->Suid returned in response to the NTLM_AUTH phase and continue
to use the UID sent in response to the NTLMSSP_NEGOTIATE phase. This
results in the server denying access to the user when the user attempts
to do a tcon connect.

See https://bugzilla.redhat.com/show_bug.cgi?id=1163927

A test kernel containing patch was tested successfully by the user.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Steve French <steve.french@primarydata.com>
fs/cifs/sess.c