Re: CIFS regression mounting vers=1.0 NTLMSSP when hostname is too long
From: ronnie sahlberg
Date: Thu May 05 2022 - 22:20:05 EST
On Fri, 6 May 2022 at 11:59, Paulo Alcantara <pc@xxxxxx> wrote:
>
> Tom Talpey <tom@xxxxxxxxxx> writes:
>
> > I think the most conservative and spec-compliant choice should be made.
> > SMB1 should not be pushing the envelope of interoperability, in this day
> > and age.
>
> OK.
>
> > I believe the NetBIOS name is a fixed array of 16 octets, right? So, if
> > the nodename is shorter, it needs to be padded with 0's.
>
> Right.
>
> > Did this code change recently? Why???
>
> We used to not send the WorkstationName during NTLMSSP until recent
> patch from Shyam:
>
> commit 49bd49f983b5026e4557d31c5d737d9657c4113e
> Author: Shyam Prasad N <sprasad@xxxxxxxxxxxxx>
> Date: Fri Nov 5 19:03:57 2021 +0000
>
> cifs: send workstation name during ntlmssp session setup
>
> During the ntlmssp session setup (authenticate phases)
> send the client workstation info. This can make debugging easier on
> servers.
>
> Signed-off-by: Shyam Prasad N <sprasad@xxxxxxxxxxxxx>
> Reviewed-by: Paulo Alcantara (SUSE) <pc@xxxxxx>
> Reviewed-by: Enzo Matsumiya <ematsumiya@xxxxxxx>
> Signed-off-by: Steve French <stfrench@xxxxxxxxxxxxx>
>
> Unfortunately some servers did not seem to enforce it to be 16 bytes
> long, so the reason why we didn't catch it earlier.
>
> Steve, Shyam, let me know if it does make sense to you and then I can
> work on a patch to fix it properly.
This regression should be easy to fix, but maybe we should not have
done the initial change in the first place.
If things is broken and do not work under SMB1, that is a good thing.
Instead of adding features or fixing
missing parts to SMB1 we should just tell people to switch to SMB2 instead.
I think if things do not work correctly or things are missing in smb1,
that is a GOOD THING.
:-)