[Samba] samba-tool ntacl sysvolreset questions
rpenny at samba.org
Mon Aug 28 07:30:08 UTC 2017
On Sun, 27 Aug 2017 21:40:55 -0400 (EDT)
Tom Diehl via samba <samba at lists.samba.org> wrote:
> In reading this list I see a lot of talk about samba-tool ntacl
> sysvolreset actually breaking things. Given the above How do I
> properly configure a 2nd AD DC or setup sysvol replication?
> For instance If I were to follow
> In the Built-in Groups GID Mappings section the last thing it says to
> do is run samba-tool ntacl sysvolreset. If I skip that step will the
> replication still work?
> they actually recommend running samba-tool ntacl sysvolreset every
> time osync runs. If I skip the steps that say to reset the sysvol is
> that going to cause problems?
> If resetting the sysvol is required, how do I keep it from causing
> FWIW, I am testing self compiled 4.7.0 rc4 AD controllers and
> samba-4.6.2-8.el7.x86_64 for the file servers.
OK, sysvolreset is broken in two ways, the first is that it doesn't
actually set the ACLs that Windows does and whilst trying to fix this,
I found that the underlying 'C' code doesn't set the ACEs it is told
Samba doesn't replicate sysvol, so you can run sysvolreset on a new
DC, just don't run it again.
This leads to Osync, provided you are using the same idmap.ldb on each
DC, Osync should sync an exact copy of sysvol from the first DC to the
second and you shouldn't need to run sysvolreset, I seem to remember
the 'REMOTE_RUN_AFTER_CMD' was added as a 'belt and braces' approach,
only it doesn't work. I am fairly sure you don't need the
More information about the samba