Bug 11586 - Getting Error in Domain Joining
Getting Error in Domain Joining
Status: NEW
Product: Samba 4.0
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB
4.0.0
All Linux
: P5 normal
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-11-02 10:50 UTC by Narendra Kumar
Modified: 2015-11-02 11:34 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Narendra Kumar 2015-11-02 10:50:05 UTC
[root@pdc1 ~]# /usr/local/samba/bin/samba-tool domain join example.com DC -Uadministrator --realm=example.com
Finding a writeable DC for domain 'example.com'
Found DC adc.example.com
Password for [example\administrator]:
workgroup is example
realm is example.com
checking sAMAccountName
Adding CN=PDC1,OU=Domain Controllers,DC=example,DC=com
Adding CN=PDC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=com
Adding CN=NTDS Settings,CN=PDC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=com
Adding SPNs to CN=PDC1,OU=Domain Controllers,DC=example,DC=com
Setting account password for PDC1$
Enabling account
Calling bare provision
Looking up IPv4 addresses
Looking up IPv6 addresses
No IPv6 address will be assigned
Setting up secrets.ldb
Setting up the registry
Setting up the privileges database
Setting up idmap db
Setting up SAM db
Setting up sam.ldb partitions and settings
Setting up sam.ldb rootDSE
Pre-loading the Samba 4 and AD schema
A Kerberos configuration suitable for Samba 4 has been generated at /usr/local/samba/private/krb5.conf
Provision OK for domain DN DC=example,DC=com
Starting replication
Schema-DN[CN=Schema,CN=Configuration,DC=example,DC=com] objects[402/1556] linked_values[0/0]
Schema-DN[CN=Schema,CN=Configuration,DC=example,DC=com] objects[804/1556] linked_values[0/0]
Schema-DN[CN=Schema,CN=Configuration,DC=example,DC=com] objects[1206/1556] linked_values[0/0]
Schema-DN[CN=Schema,CN=Configuration,DC=example,DC=com] objects[1556/1556] linked_values[0/0]
Analyze and apply schema objects
Partition[CN=Configuration,DC=example,DC=com] objects[402/1689] linked_values[0/0]
Partition[CN=Configuration,DC=example,DC=com] objects[804/1689] linked_values[0/0]
Partition[CN=Configuration,DC=example,DC=com] objects[1206/1689] linked_values[0/0]
Partition[CN=Configuration,DC=example,DC=com] objects[1608/1689] linked_values[0/0]
Partition[CN=Configuration,DC=example,DC=com] objects[1689/1689] linked_values[27/0]
Replicating critical objects from the base DN of the domain
Partition[DC=example,DC=com] objects[98/98] linked_values[28/0]
Partition[DC=example,DC=com] objects[500/2783] linked_values[0/0]
Partition[DC=example,DC=com] objects[902/2783] linked_values[0/0]
Partition[DC=example,DC=com] objects[1304/2783] linked_values[0/0]
No objectClass found in replPropertyMetaData for CN=Sunjeet Malik\0ADEL:8713d58e-45c4-4ef5-8aad-4d876afb323c,CN=Deleted Objects,DC=example,DC=com!

Failed to apply records: replmd_replicated_apply_add: error during DRS repl ADD: No objectClass found in replPropertyMetaData for CN=Sunjeet Malik\0ADEL:8713d58e-45c4-4ef5-8aad-4d876afb323c,CN=Deleted Objects,DC=example,DC=com!
: Object class violation
Failed to commit objects: WERR_GENERAL_FAILURE
Join failed - cleaning up
checking sAMAccountName
Deleted CN=PDC1,OU=Domain Controllers,DC=example,DC=com
Deleted CN=NTDS Settings,CN=PDC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=com
Deleted CN=PDC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=example,DC=com
ERROR(<type 'exceptions.TypeError'>): uncaught exception - Failed to process chunk: NT_STATUS_UNSUCCESSFUL
  File "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/__init__.py", line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/domain.py", line 641, in run
    machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend)
  File "/usr/local/samba/lib64/python2.6/site-packages/samba/join.py", line 1205, in join_DC
    ctx.do_join()
  File "/usr/local/samba/lib64/python2.6/site-packages/samba/join.py", line 1109, in do_join
    ctx.join_replicate()
  File "/usr/local/samba/lib64/python2.6/site-packages/samba/join.py", line 838, in join_replicate
    replica_flags=ctx.domain_replica_flags)
  File "/usr/local/samba/lib64/python2.6/site-packages/samba/drs_utils.py", line 257, in replicate
    schema=schema, req_level=req_level, req=req)