cifs: Fix signing failure when server mandates signing for NTLMSSP
authorShirish Pargaonkar <shirishpargaonkar@gmail.com>
Sun, 10 Jul 2011 11:55:32 +0000 (06:55 -0500)
committerSteve French <sfrench@us.ibm.com>
Tue, 12 Jul 2011 19:14:23 +0000 (19:14 +0000)
commit62411ab2fe5f002dff27417630ddf02cc40ca404
tree0265e2d9cf87d4226ffe3ad909dd46eb6c079823
parent620917de59eeb934b9f8cf35cc2d95c1ac8ed0fc
cifs: Fix signing failure when server mandates signing for NTLMSSP

When using NTLMSSP authentication mechanism, if server mandates
signing, keep the flags in type 3 messages of the NTLMSSP exchange
same as in type 1 messages (i.e. keep the indicated capabilities same).

Some of the servers such as Samba, expect the flags such as
Negotiate_Key_Exchange in type 3 message of NTLMSSP exchange as well.
Some servers like Windows do not.

https://bugzilla.samba.org/show_bug.cgi?id=8212

Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/sess.c