[PATCH] Fix smbclient regression not printing session setup anymore
Andreas Schneider
asn at samba.org
Tue Jun 6 16:27:00 UTC 2017
On Tuesday, 6 June 2017 18:08:09 CEST Jeremy Allison wrote:
> On Tue, Jun 06, 2017 at 05:56:21PM +0200, Andreas Schneider via samba-
technical wrote:
> > On Tuesday, 6 June 2017 17:35:52 CEST Andreas Schneider via
> > samba-technical
> >
> > wrote:
> > > Hi,
> > >
> > > with Samba 4.6 we have a regression. We do not get the information of
> > > the
> > > session setup filled out so smbclient can't print it.
> > >
> > > Domain=[SAMBA-TEST] OS=[Windows 6.1] Server=[Samba
> > > 4.7.0pre1-DEVELOPERBUILD] smb: \>
> > >
> > > The attached patchset addresses the issue. I've open a bug for this:
> > >
> > > https://bugzilla.samba.org/show_bug.cgi?id=12824
> >
> > I've added a test to confirm that the message is actually printed so we do
> > not regress again ...
>
> The change from 'bool align_odd = true' to 'bool align_odd = false'
> concerns me.
>
> smb_bytes_pull_str() is used from all SMB1 session code inside
> libcli/smb/smb1cli_session.c
The code called smb_bytes_talloc_string() before and this didn't handle
align_odd before, why should it now?
If you set align_odd to true you get:
OS=[椀渀搀漀眀猀 㘀⸀] Server=[匀愀洀戀愀 㐀⸀㜀⸀ 瀀爀攀ⴀ䐀䔀嘀䔀䰀伀倀䔀刀䈀唀䤀䰀䐀]
> especially the protocols lm21 and nt1. In addition it's used
> inside
>
> cli_sesssetup_blob_send() -> cli_sesssetup_blob_next() ->
> smb1cli_session_setup_ext_send()-> smb1cli_session_setup_ext_done() ->
> smb_bytes_pull_str()
>
> which I believe is part of the SPNEGO code.
>
> Are you sure you want to change that for all these code
> paths ?
--
Andreas Schneider GPG-ID: CC014E3D
Samba Team asn at samba.org
www.samba.org
More information about the samba-technical
mailing list