smb3: do not set NTLMSSP_VERSION flag for negotiate not
authorSteve French <stfrench@microsoft.com>
Thu, 17 Aug 2023 04:18:54 +0000 (23:18 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 17 Aug 2023 04:18:54 +0000 (23:18 -0500)
commit1b6339ca4c492b48f5d1e76a67639bcf705c2326
tree386cf4d6651dbd62ce831ad15ba86d8093b56611
parent01b1014d5a22107f86d281ae109ed2f9630dd3cf
smb3: do not set NTLMSSP_VERSION flag for negotiate not
 auth request

The NTLMSSP_NEGOTIATE_VERSION flag only needs to be sent during
the NTLMSSP NEGOTIATE (not the AUTH) request, so filter it out for
NTLMSSP AUTH requests. See MS-NLMP 2.2.1.3

This fixes a problem found by the gssntlmssp server.

Link: https://github.com/gssapi/gss-ntlmssp/issues/95
Fixes: 52d005337b2c ("smb3: send NTLMSSP version information")
Acked-by: Roy Shterman <roy.shterman@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/sess.c