Hello, I'm stumped. I'm trying to join a machine to a domain and I get this : # samba-tool domain join campus.mcgill.ca DC -Udavid.salib at CAMPUS.MCGILL.CA Finding a writeable DC for domain 'campus.mcgill.ca' Found DC DC01.campus.MCGILL.CA Password for [david.salib at CAMPUS.MCGILL.CA]: workgroup is CAMPUS realm is campus.MCGILL.CA checking sAMAccountName Adding CN=SMB4TEST,OU=Domain Controllers,DC=campus,DC=MCGILL,DC=CA Join failed - cleaning up checking sAMAccountName ERROR(ldb): uncaught exception - LDAP error 19 LDAP_CONSTRAINT_VIOLATION - <0000207C: AtrErr: DSID-03152CAF, #1: 0: 0000207C: DSID-03152CAF, problem 1005 (CONSTRAINT_ATT_TYPE), data 0, Att 2000d (displayName)> <>File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py", line 552, in run machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend) File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 1104, in join_DC ctx.do_join() File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 1007, in do_join ctx.join_add_objects() File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 499, in join_add_objects ctx.samdb.add(rec) Seems to me like changing the OU which I'm trying to join would fix the issue, but I can't find the switch to specify it (or the format). Thanks, D -- David Salib Systems Administrator Department of Electrical and Computer Engineering (ECE)
On 01/25/2013 05:36 PM, David Salib, Mr wrote:> Hello, > > I'm stumped. I'm trying to join a machine to a domain and I get this : > > # samba-tool domain join campus.mcgill.ca DC -Udavid.salib at CAMPUS.MCGILL.CA > Finding a writeable DC for domain 'campus.mcgill.ca' > Found DC DC01.campus.MCGILL.CA > Password for [david.salib at CAMPUS.MCGILL.CA]: > workgroup is CAMPUS > realm is campus.MCGILL.CA > checking sAMAccountName > Adding CN=SMB4TEST,OU=Domain Controllers,DC=campus,DC=MCGILL,DC=CA > Join failed - cleaning up > checking sAMAccountName > ERROR(ldb): uncaught exception - LDAP error 19 LDAP_CONSTRAINT_VIOLATION - <0000207C: AtrErr: DSID-03152CAF, #1: > 0: 0000207C: DSID-03152CAF, problem 1005 (CONSTRAINT_ATT_TYPE), data 0, Att 2000d (displayName) >> <> > File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run > return self.run(*args, **kwargs) > File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py", line 552, in run > machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend) > File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 1104, in join_DC > ctx.do_join() > File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 1007, in do_join > ctx.join_add_objects() > File "/usr/local/samba/lib/python2.7/site-packages/samba/join.py", line 499, in join_add_objects > ctx.samdb.add(rec) > > Seems to me like changing the OU which I'm trying to join would fix the issue, but I can't find the switch to specify it (or the format).I don't think this is related to the OU, it seems that you have already an object in your forest that has the displayName SMB4TEST$, can you check and maybe change the name of your new DC ? Matthieu. -- Matthieu Patou Samba Team http://samba.org
Apparently Analagous Threads
- cannot join an existing AD as either a RODC or DC w/ samba4
- Samba Authentication With Kerberos
- Out of Office: Out of Office: Out of Office: Ou t of Office: Ou t of Office: Ou t of Office: Ou t of Office: Ou t of Office: Ou t of Office: Ou t of Office: Re : som e kind of t i meou t problem in pbx _sp ool.c
- transfer FSMO roles from Windows DC
- samba-tool ou create "OU=del-ou, dc=atest, dc=com" fails with /var/lib/samba/private/sam.ldb: No such file or directory