smb: client: fix session setup against servers that require SPN
Some servers might enforce the SPN to be set in the target info blob (AV pairs) when sending NTLMSSP_AUTH message. In Windows Server, this could be enforced with SmbServerNameHardeningLevel set to 2. Fix this by always appending SPN (cifs/<hostname>) to the existing list of target infos when setting up NTLMv2 response blob. Cc: linux-cifs@vger.kernel.org Cc: David Howells <dhowells@redhat.com> Reported-by:Pierguido Lambri <plambri@redhat.com> Signed-off-by:
Paulo Alcantara (Red Hat) <pc@manguebit.org> Signed-off-by:
Steve French <stfrench@microsoft.com>
Loading
Please sign in to comment