[Samba] dbtool --cross-ncs and undeletable errors..

vincent at cojot.name vincent at cojot.name
Tue Jan 22 19:20:21 UTC 2019


Hi All,

On my two-DC setup (dc00 and dc01 - Used to be a 4-Dc setup but 02 and 03 
are gone), I've noticed the following errors which I am unable to fix.. Any hints?

* Basic dbcheck is clean.

[root at dc00 ~]# samba-tool dbcheck
Checking 327 objects
Checked 327 objects (0 errors)

* Cross-NCS shows two errors related to a de-comissionned DC (dc02) and 
cannot auto-fix this.. How do I fix those errors?

[root at dc00 ~]# samba-tool dbcheck --cross-ncs --fix --yes
Checking 3574 objects
ERROR: no target object found for GUID component for link fromServer in 
object 
CN=4b3f95b1-7774-42cf-8bc0-755c7d29f6cc,CN=LostAndFoundConfig,CN=Configuration,DC=ad,DC=lasthome,DC=solace,DC=krynn 
- <GUID=c8bf60b8-c3b9-442f-a330-d706221bc889>;CN=NTDS 
Settings\0ADEL:c8bf60b8-c3b9-442f-a330-d706221bc889,CN=DC02\0ADEL:53a02791-a186-4a2f-aef9-6e180b814d8a,CN=Servers,CN=Krynn,CN=Sites,CN=Configuration,DC=ad,DC=lasthome,DC=solace,DC=krynn
ERROR: target DN is deleted for fromServer in object 
CN=4b3f95b1-7774-42cf-8bc0-755c7d29f6cc,CN=LostAndFoundConfig,CN=Configuration,DC=ad,DC=lasthome,DC=solace,DC=krynn 
- <GUID=c8bf60b8-c3b9-442f-a330-d706221bc889>;CN=NTDS 
Settings\0ADEL:c8bf60b8-c3b9-442f-a330-d706221bc889,CN=DC02\0ADEL:53a02791-a186-4a2f-aef9-6e180b814d8a,CN=Servers,CN=Krynn,CN=Sites,CN=Configuration,DC=ad,DC=lasthome,DC=solace,DC=krynn
Target GUID points at deleted DN 
'<GUID=c8bf60b8-c3b9-442f-a330-d706221bc889>;CN=NTDS 
Settings\\0ADEL:c8bf60b8-c3b9-442f-a330-d706221bc889,CN=DC02\\0ADEL:53a02791-a186-4a2f-aef9-6e180b814d8a,CN=Servers,CN=Krynn,CN=Sites,CN=Configuration,DC=ad,DC=lasthome,DC=solace,DC=krynn'
Remove DN link? [YES]
ERROR: Failed to remove deleted DN attribute fromServer : (65, 
"objectclass_attrs: at least one mandatory attribute ('fromServer') on 
entry 
'CN=4b3f95b1-7774-42cf-8bc0-755c7d29f6cc,CN=LostAndFoundConfig,CN=Configuration,DC=ad,DC=lasthome,DC=solace,DC=krynn' 
wasn't specified!")


Thanks for any hints/pointers.

Vincent



More information about the samba mailing list