[Samba] Problems joining a Samba DC to an existing active directory

Rowland Penny rpenny at samba.org
Fri Jan 13 22:44:53 UTC 2017


On Fri, 13 Jan 2017 23:21:43 +0200
Richard via samba <samba at lists.samba.org> wrote:

> I created a new Samba 4.5.3 server to join our 4.5.3 AD domain as a DC
> 
>  
> 
> Following these instructions:
> 
>  
> 
> https://wiki.samba.org/index.php/Joining_a_Samba_DC_to_an_Existing_Active_Di
> rectory
> 
>  
> 
> everything went fine until I got here:
> 
>  
> 
> https://wiki.samba.org/index.php/Joining_a_Samba_DC_to_an_Existing_Active_Di
> rectory#Built-in_Groups_GID_Mappings
> 
>  
> 
> where running the required:
> 
>  
> 
> samba-tool ntacl sysvolreset
> 
>  
> 
> command resulted in the following errors:
> 
>  
> 
> open: error=2 (No such file or directory)
> 
> ERROR(runtime): uncaught exception - (-1073741823, 'Undetermined
> error')
> 
>   File
> "/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/__init__.py",
> line 176, in _run
> 
>     return self.run(*args, **kwargs)
> 
>   File
> "/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/ntacl.py",
> line 239, in run
> 
>     lp, use_ntvfs=use_ntvfs)
> 
>   File
> "/usr/local/samba/lib64/python2.7/site-packages/samba/provision/__init__.py"
> , line 1609, in setsysvolacl
> 
>     set_gpos_acl(sysvol, dnsdomain, domainsid, domaindn, samdb, lp,
> use_ntvfs, passdb=s4_passdb)
> 
>   File
> "/usr/local/samba/lib64/python2.7/site-packages/samba/provision/__init__.py"
> , line 1502, in set_gpos_acl
> 
>     use_ntvfs=use_ntvfs, skip_invalid_chown=True, passdb=passdb,
> service=SYSVOL_SERVICE)
> 
>   File
> "/usr/local/samba/lib64/python2.7/site-packages/samba/ntacls.py",
> line 162, in setntacl
> 
>     smbd.set_nt_acl(file, security.SECINFO_OWNER |
> security.SECINFO_GROUP | security.SECINFO_DACL |
> security.SECINFO_SACL, sd, service=service)
> 
>  
> 
> I have absolutely no idea what to do to resolve this. Any input would
> be greatly appreciated - thanks in advance!
> 
>  
> 
>  
> 

You haven't got all the sysvol contents, you will need to copy them
from the original DC with rsync, see here:

https://wiki.samba.org/index.php/SysVol_replication_%28DFS-R%29

Choose your way of doing it, I recommend the osync variant ;-)

Rowland



More information about the samba mailing list