[Samba] Setup a Samba AD DC as an additional DC
L.P.H. van Belle
belle at bazuin.nl
Thu Nov 22 08:06:23 UTC 2018
which samba version, because i've een reports the 4.8 fails and 4.7 fails but 4.6 should work, and i dont know about 4.9.2
Can you show your /etc/hosts file and /etc/resolv.conf and /etc/krb5.conf
You used :
samba-tool domain join mydomain.com DC -U"MYDOMAIN\administrator" --dns-backend=SAMBA_INTERNAL --option="interfaces=ens2f0"
not wrong, but can you try.
kinit Administrator
samba-tool domain join mydomain.com DC --dns-backend=SAMBA_INTERNAL --site=MySite --option="interfaces=ens2f0" -k
If that does not work.
samba-tool domain join mydomain.com DC --dns-backend=SAMBA_INTERNAL --option="interfaces=ens2f0" -k
If not,...
samba-tool domain join mydomain.com DC --dns-backend=SAMBA_INTERNAL -k
If not,
samba-tool domain join mydomain.com DC --dns-backend=SAMBA_INTERNAL --realm=YOUR_REALM -k
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> Barry D. Adkins via samba
> Verzonden: woensdag 21 november 2018 22:15
> Aan: samba at lists.samba.org
> Onderwerp: [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=myd
> omain,DC=com
> Adding CN=NTDS
> Settings,CN=DCU18,CN=Servers,CN=MySite,CN=Sites,CN=Configurati
> on,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=Configurati
> on,DC=mydomain,DC=com
> Deleted
> CN=DCU18,CN=Servers,CN=MySite,CN=Sites,CN=Configuration,DC=myd
> omain,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
>
More information about the samba
mailing list