]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix ntlmssp on old servers
authorPaulo Alcantara <pc@cjr.nz>
Wed, 25 May 2022 12:37:04 +0000 (07:37 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 25 May 2022 12:41:22 +0000 (07:41 -0500)
commit938f186eb3f2a65a4a55717c075d823894d23fb7
tree6cc5c2567bfbdb3155662c166020189c473be525
parentc13165cc072c0c103b0433cd30940fa8e931ce4f
cifs: fix ntlmssp on old servers

Some older servers seem to require the workstation name during ntlmssp
to be at most 15 chars (RFC1001 name length), so truncate it before
sending when using insecure dialects.

Link: https://lore.kernel.org/r/e6837098-15d9-acb6-7e34-1923cf8c6fe1@winds.org
Reported-by: Byron Stanoszek <gandalf@winds.org>
Tested-by: Byron Stanoszek <gandalf@winds.org>
Fixes: 27e2b9c1c834 ("cifs: send workstation name during ntlmssp session setup")
Cc: stable@vger.kernel.org
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/fs_context.c
fs/cifs/fs_context.h
fs/cifs/misc.c
fs/cifs/sess.c