smb3: do not set NTLMSSP_VERSION flag for negotiate not auth request
authorSteve French <stfrench@microsoft.com>
Tue, 25 Jul 2023 06:05:23 +0000 (01:05 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 25 Jul 2023 06:16:05 +0000 (01:16 -0500)
commit19826558210b9102a7d4681c91784d137d60d71b
tree22ecdd90bbadcbb5c9e666cf66f48ff960ba248b
parenta43f95fdd39490f7b156fd126f1e90ec2d5553f1
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/smb/client/sess.c