[Samba] Can't join Samba as DC to existing Win2k3 Domain

Liam Liam.k at weaverstreetmarket.coop
Thu Aug 30 08:28:08 MDT 2012


I downloaded and built Samba 4, and I'm at the step where I'm trying to add it 
to the domain and I'm getting a replication error when it's trying to do it's 
initial replication.

bin/samba-tool domain join domain.coop DC -Uusername --realm=domain.coop


Finding a writeable DC for domain 'domain.coop'
Found DC DC.domain.coop
Password for [DOMAIN\username]:
workgroup is DOMAIN
realm is domain.coop
checking sAMAccountName
Adding CN=SambaServer,OU=Domain Controllers,DC=domain,DC=coop
Adding 
CN=SambaServer,CN=Servers,CN=SV,CN=Sites,CN=Configuration,DC=domain,DC=coop
Adding CN=NTDS 
Settings,CN=SambaServer,CN=Servers,CN=SV,CN=Sites,CN=Configuration,DC=domain,DC=
coop
Adding SPNs to CN=SambaServer,OU=Domain Controllers,DC=domain,DC=coop
Setting account password for SambaServer$
Enabling account
Calling bare provision
No IPv6 address will be assigned
Provision OK for domain DN DC=domain,DC=coop
Starting replication
Schema-DN[CN=Schema,CN=Configuration,DC=domain,DC=coop] objects[402] 
linked_values[0]
Schema-DN[CN=Schema,CN=Configuration,DC=domain,DC=coop] objects[804] 
linked_values[0]
Schema-DN[CN=Schema,CN=Configuration,DC=domain,DC=coop] objects[1206] 
linked_values[0]
Schema-DN[CN=Schema,CN=Configuration,DC=domain,DC=coop] objects[1376] 
linked_values[0]
Analyze and apply schema objects
Partition[CN=Configuration,DC=domain,DC=coop] objects[402] linked_values[0]
Partition[CN=Configuration,DC=domain,DC=coop] objects[804] linked_values[0]
Partition[CN=Configuration,DC=domain,DC=coop] objects[1206] linked_values[0]
Partition[CN=Configuration,DC=domain,DC=coop] objects[1608] linked_values[55]
Partition[CN=Configuration,DC=domain,DC=coop] objects[1650] linked_values[10]
Replicating critical objects from the base DN of the domain
Partition[DC=domain,DC=coop] objects[96] linked_values[20]
Partition[DC=domain,DC=coop] objects[434] linked_values[64]
Partition[DC=domain,DC=coop] objects[698] linked_values[37]
Partition[DC=domain,DC=coop] objects[945] linked_values[20]
Partition[DC=domain,DC=coop] objects[1130] linked_values[45]
Refusing to replicate DC=TAPI3Directory\0ADEL:421d2b48-4a80-45e1-a921-
b1700eb4daca,DC=domain,DC=coop from a read-only repilca into a read-write 
replica!
Failed to convert object DC=TAPI3Directory\0ADEL:421d2b48-4a80-45e1-a921-
b1700eb4daca,DC=domain,DC=coop: WERR_DS_DRA_SOURCE_IS_PARTIAL_REPLICA
Failed to convert objects: WERR_DS_DRA_SOURCE_IS_PARTIAL_REPLICA
Join failed - cleaning up
checking sAMAccountName
Deleted CN=SambaServer,OU=Domain Controllers,DC=domain,DC=coop
Deleted CN=NTDS 
Settings,CN=SambaServer,CN=Servers,CN=SV,CN=Sites,CN=Configuration,DC=domain,DC=
coop
Deleted 
CN=SambaServer,CN=Servers,CN=SV,CN=Sites,CN=Configuration,DC=domain,DC=coop
ERROR(<type 'exceptions.TypeError'>): uncaught exception - Failed to process 
chunk: NT code 0xc0002111
  File "bin/python/samba/netcmd/__init__.py", line 160, in _run
    return self.run(*args, **kwargs)
  File "bin/python/samba/netcmd/domain.py", line 256, in run
    machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend)
  File "bin/python/samba/join.py", line 1079, in join_DC
    ctx.do_join()
  File "bin/python/samba/join.py", line 984, in do_join
    ctx.join_replicate()
  File "bin/python/samba/join.py", line 736, in join_replicate
    replica_flags=ctx.domain_replica_flags)
  File "bin/python/samba/drs_utils.py", line 252, in replicate
    schema=schema, req_level=req_level, req=req)


When I first got this I ran tapicfg on a windows DC and saw a TAPI3Directory 
partition. I deleted it and it didn't seem to help. I've also run ldp.exe, and 
tried to find it that way. As well as running repadmin /removelingeringobjects 
thinking it might just not have been fully deleted.

Is this just having to wait for the tombstone lifetime of the deleted object to 
pass, or is there something I can do to fix this and get the replication working 
for the Samba 4 server I'm trying to setup.

Thanks!
Liam
liam(dot)k(at)weaverstreetmarket(dot)coop



More information about the samba mailing list