[Samba] smbclient error talking to Netapp with SMB 3.11 / Samba 4.7.11
philipp.gesang at intra2net.com
Thu Feb 14 12:47:48 UTC 2019
thanks for having a look.
-<| Quoting Ralph Böhme <slow at samba.org>, on Thursday, 2019-02-14 12:10:37 PM |>-
> On Thu, Feb 14, 2019 at 09:59:30AM +0100, Philipp Gesang via samba wrote:
> > I’m not really in a position to decide whether the server or
> > Samba is at fault here. Would it make sense to relax that check
> > and try again?
> While MS-SMB2 2.2.3 says NEGOTIATE_CONTEXT in the NegotiateContextList array
> must be 8-byte-aligned, so NegotiateContextList may include padding between
> the NEGOTIATE_CONTEXTs, MS-SMB2 18.104.22.168 defines the
> NEGOTIATE_CONTEXT.DataLength to hold the size of Data, which does not
> include padding. So from that, this is a server bug.
The preceding SMB2_PREAUTH_INTEGRITY_CAPABILITIES context is
padded from 46 to 48 bytes with zeros. Its data length is set to
38 which does not cover the padding. Looks like Netapp themselves
agree with your assessment. ;)
> Otoh, Windows clients are probably able to connect to the server, so they
> seem to be more forgiving.
> I guess we need clarification from dochelp at MS on the matter.
We’ll be able to test a patched libsmbclient with “<” substituted
for the length check later today. We’ll see if that is already
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the samba