[Samba] smbcacls got error NT_STATUS_NETWORK_NAME_DELETED
Jeremy Allison
jra at samba.org
Mon Jun 12 19:01:31 UTC 2017
On Fri, Jun 09, 2017 at 06:38:01AM +0200, Ralph Böhme wrote:
> On Thu, Jun 08, 2017 at 02:40:49PM -0700, Jeremy Allison wrote:
> > On Thu, Jun 08, 2017 at 06:43:34PM +0200, Ralph Böhme via samba wrote:
> > > Hi Andy,
> > >
> > > On Thu, Jun 08, 2017 at 09:23:50AM -0700, Andy Qian via samba wrote:
> > > > The smbcacls cmd worked before till recently. Due to the recent Windows
> > > > patch which disables SMB v1, we have to add the following line into the
> > > > [global] section in smb.conf file on Linux machine so that the smbcacls can
> > > > talk to the Windows server otherwise it gets error
> > > > NT_STATUS_CONNECTION_RESET:
> > > >
> > > > client max protocol = SMB3
> > > >
> > > > with this option added, the smbcacls cmd ran into error
> > > > NT_STATUS_NETWORK_NAME_DELETED.
> > >
> > > it's a bug in smbcacls. For some reason, when using protocol level > 1 it issues
> > > create calls on an invalid, just closed IPC tree connect, instead of the still
> > > connected share.
> > >
> > > Just ran into this today (but have seen it earlier) when passing -m smb3 on the
> > > command line. Shouldn't be too hard to fix this, just didn't have the time.
> >
> > Just tried but couldn't reproduce this against an smbd server running
> > master. Ralph, do you have a reproducer ?
>
> $ ./bin/smbcacls -m smb3 -U slow%x //localhost/share "" -a "ACL:SLOWSERVER\slow:ALLOWED/0x0/READ"
> Failed to open \: NT_STATUS_NETWORK_NAME_DELETED
> $
Thanks, I've reproduced and I know what the problem is - working on a fix now !
More information about the samba
mailing list