]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: Fix encoding of SMB1 Session Setup NTLMSSP Request in non-UNICODE mode
authorPali Rohár <pali@kernel.org>
Sun, 6 Oct 2024 17:24:29 +0000 (19:24 +0200)
committerSteve French <stfrench@microsoft.com>
Mon, 2 Jun 2025 01:43:40 +0000 (20:43 -0500)
commit6510ef4230b68c960309e0c1d6eb3e32eb785142
tree361d45803f42435f897cacd4d1c9504181b9749a
parentf1e7a277a1736e12cc4bd6d93b8a5c439b8ca20c
cifs: Fix encoding of SMB1 Session Setup NTLMSSP Request in non-UNICODE mode

SMB1 Session Setup NTLMSSP Request in non-UNICODE mode is similar to
UNICODE mode, just strings are encoded in ASCII and not in UTF-16.

With this change it is possible to setup SMB1 session with NTLM
authentication in non-UNICODE mode with Windows SMB server.

This change fixes mounting SMB1 servers with -o nounicode mount option
together with -o sec=ntlmssp mount option (which is the default sec=).

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/sess.c