[PATCH] Fix bug #Bug 12831 - smbcacls got error NT_STATUS_NETWORK_NAME_DELETED

Ralph Böhme slow at samba.org
Fri Jun 16 17:38:06 UTC 2017


On Fri, Jun 16, 2017 at 09:20:53AM -0700, Jeremy Allison wrote:
> On Wed, Jun 14, 2017 at 08:50:57AM -0700, Jeremy Allison wrote:
> > It turns out that smbclient, smbcacls and smbtorture3 depend
> > on the ability to temporarily replace the client tcon connection
> > struct internally to the client with a new connection to IPC$,
> > do some calls on that new connection (usually lookupnames/lookupsids),
> > then replace the old values of the tcon and continue.
> > 
> > This has some problems. (a). It only works for SMB1 (for SMB2 we
> > overwrote the tcon pointer) and (b). It didn't really work for SMB1
> > either - we ended up with a bastardized cli->smb1.tcon pointer that
> > contains type and string from the IPC$ connection whilst being
> > connected to the share connection. We only got away with this
> > due to the fact we don't use the type and string for anything
> > on the wire.
> > 
> > This patch unifies the cli->smb[1|2].tcon pointer handling and
> > allows temporary replacement of the pointer, and also SMB2 access
> > to the get/set the 32-bit tid value.
> > 
> > Most of this patch is fixing up the smbclient/smbcacls/smbtorture3
> > code so everything keeps working with make test, so I know this
> > is being tested (it took me a day or so to keep all our tests
> > passing :-).
> > 
> > Please review and push if you're happy !
> 
> Ping ! Can I get a review on this please ?

currently sick in bed, will review when I'm back up, probably on Monday, if
noone else does it.

-slow



More information about the samba-technical mailing list