Web lists-archives.com

[Samba] Setup a Samba AD DC as an additional DC




Samba-tool FAILED

> I've installed these packages:
> 
> apt-get install samba winbind libnss-winbind libpam-winbind
> libpam-krb5 krb5-config
> 
> Installing on fresh Ubuntu 18.04 server
>

:~$ samba-tool domain join mydomain.com DC -U"MYDOMAIN\administrator" --dns-backend=SAMBA_INTERNAL --site=MySite --option="interfaces=ens2f0"
Finding a writeable DC for domain 'mydomain.com'
Found DC DC01.mydomain.com
Password for [MYDOMAIN\administrator]:
workgroup is MYDOMAIN
realm is mydomain.com
Adding CN=DCU18,OU=Domain Controllers,DC=mydomain,DC=com
Adding CN=DCU18,CN=Servers,CN=MySite,CN=Sites,CN=Configuration,DC=mydomain,DC=com
Adding CN=NTDS Settings,CN=DCU18,CN=Servers,CN=MySite,CN=Sites,CN=Configuration,DC=mydomain,DC=com
Join failed - cleaning up
Deleted CN=DCU18,OU=Domain Controllers,DC=mydomain,DC=com
Deleted CN=NTDS Settings,CN=DCU18,CN=Servers,CN=MySite,CN=Sites,CN=Configuration,DC=mydomain,DC=com
Deleted CN=DCU18,CN=Servers,CN=MySite,CN=Sites,CN=Configuration,DC=mydomain,DC=com
ERROR(ldb): uncaught exception - LDAP error 10 LDAP_REFERRAL -  <0000202B: RefErr: DSID-030A0AEB, data 0, 1 access points
        ref 1: '50bb59f8-933c-41a5-87d9-f98ad1fa4e10._msdcs.daram.com'
> <ldap://50bb59f8-933c-41a5-87d9-f98ad1fa4e10._msdcs.mydomain.com>
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 661, in run
    machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend)
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 1474, in join_DC
    ctx.do_join()
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 1375, in do_join
    ctx.join_add_objects()
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 668, in join_add_objects
    ctx.samdb.modify(m)
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba