[Samba] Problem with drs replication

Stéphane PURNELLE stephane.purnelle at corman.be
Mon Sep 14 10:28:21 UTC 2015



Hi,

I try to add a 2008 R2 DC (following howto on samba wiki)

And this is not work:

/usr/local/samba/bin/samba-tool drs showrepl
Default-First-Site-Name\DC01
DSA Options: 0x00000001
DSA object GUID: 1722dcbd-ed82-44a8-ac58-5ca17bef0aa8
DSA invocationId: 1ebf0293-f1b3-4e30-922f-49deec5615ee

==== INBOUND NEIGHBORS ====

DC=DomainDnsZones,DC=xxxxxxdom,DC=xxx-corman,DC=be
	Default-First-Site-Name\DC02 via RPC
		DSA object GUID: 132dec84-61d8-4f1a-b6f6-910b636416d3
		Last attempt @ Mon Sep 14 12:06:31 2015 CEST failed, result 2
(WERR_BADFILE)
		556 consecutive failure(s).
		Last success @ Sat Sep 12 15:51:24 2015 CEST

DC=ForestDnsZones,DC=xxxxxxdom,DC=xxx-corman,DC=be
	Default-First-Site-Name\DC02 via RPC
		DSA object GUID: 132dec84-61d8-4f1a-b6f6-910b636416d3
		Last attempt @ Mon Sep 14 12:06:31 2015 CEST failed, result 2
(WERR_BADFILE)
		563 consecutive failure(s).
		Last success @ Sat Sep 12 15:51:24 2015 CEST

DC=xxxxxxdom,DC=xxx-corman,DC=be
	Default-First-Site-Name\DC02 via RPC
		DSA object GUID: 132dec84-61d8-4f1a-b6f6-910b636416d3
		Last attempt @ Mon Sep 14 12:06:31 2015 CEST failed, result 2
(WERR_BADFILE)
		535 consecutive failure(s).
		Last success @ Sat Sep 12 15:51:24 2015 CEST

DC=xxxxxxdom,DC=xxx-corman,DC=be
	Default-First-Site-Name\DC03 via RPC
		DSA object GUID: 7c74c33e-e1eb-4b48-9a3e-6c80d9c7bd8c
		Last attempt @ Mon Sep 14 12:06:31 2015 CEST was successful
		0 consecutive failure(s).
		Last success @ Mon Sep 14 12:06:31 2015 CEST

CN=Schema,CN=Configuration,DC=xxxxxxdom,DC=xxx-int-corman,DC=be
	Default-First-Site-Name\DC02 via RPC
		DSA object GUID: 132dec84-61d8-4f1a-b6f6-910b636416d3
		Last attempt @ Mon Sep 14 12:06:31 2015 CEST failed, result 2
(WERR_BADFILE)
		532 consecutive failure(s).
		Last success @ Sat Sep 12 15:51:24 2015 CEST

CN=Schema,CN=Configuration,DC=xxxxxxdom,DC=xxx-int-corman,DC=be
	Default-First-Site-Name\DC03 via RPC
		DSA object GUID: 7c74c33e-e1eb-4b48-9a3e-6c80d9c7bd8c
		Last attempt @ Mon Sep 14 12:06:31 2015 CEST was successful
		0 consecutive failure(s).
		Last success @ Mon Sep 14 12:06:31 2015 CEST

CN=Configuration,DC=xxxxxxdom,DC=xxx-corman,DC=be
	Default-First-Site-Name\DC02 via RPC
		DSA object GUID: 132dec84-61d8-4f1a-b6f6-910b636416d3
		Last attempt @ Mon Sep 14 12:06:31 2015 CEST failed, result 2
(WERR_BADFILE)
		532 consecutive failure(s).
		Last success @ Sat Sep 12 15:51:24 2015 CEST

CN=Configuration,DC=xxxxxxdom,DC=xxx-corman,DC=be
	Default-First-Site-Name\DC03 via RPC
		DSA object GUID: 7c74c33e-e1eb-4b48-9a3e-6c80d9c7bd8c
		Last attempt @ Mon Sep 14 12:06:31 2015 CEST was successful
		0 consecutive failure(s).
		Last success @ Mon Sep 14 12:06:31 2015 CEST

==== OUTBOUND NEIGHBORS ====

DC=DomainDnsZones,DC=xxxxxxdom,DC=xxx-corman,DC=be
	Default-First-Site-Name\DC02 via RPC
		DSA object GUID: 132dec84-61d8-4f1a-b6f6-910b636416d3
		Last attempt @ Mon Sep 14 12:08:28 2015 CEST failed, result 2
(WERR_BADFILE)
		31510 consecutive failure(s).
		Last success @ Sat Sep 12 15:40:50 2015 CEST

DC=ForestDnsZones,DC=xxxxxxdom,DC=xxx-corman,DC=be
	Default-First-Site-Name\DC02 via RPC
		DSA object GUID: 132dec84-61d8-4f1a-b6f6-910b636416d3
		Last attempt @ Mon Sep 14 12:08:28 2015 CEST failed, result 2
(WERR_BADFILE)
		31780 consecutive failure(s).
		Last success @ Sat Sep 12 15:40:50 2015 CEST

DC=xxxxxxdom,DC=xxx-corman,DC=be
	Default-First-Site-Name\DC02 via RPC
		DSA object GUID: 132dec84-61d8-4f1a-b6f6-910b636416d3
		Last attempt @ Mon Sep 14 12:08:28 2015 CEST failed, result 2
(WERR_BADFILE)
		31781 consecutive failure(s).
		Last success @ Sat Sep 12 15:49:46 2015 CEST

DC=xxxxxxdom,DC=xxx-corman,DC=be
	Default-First-Site-Name\DC03 via RPC
		DSA object GUID: 7c74c33e-e1eb-4b48-9a3e-6c80d9c7bd8c
		Last attempt @ Mon Sep 14 11:50:42 2015 CEST was successful
		0 consecutive failure(s).
		Last success @ Mon Sep 14 11:50:42 2015 CEST

CN=Schema,CN=Configuration,DC=xxxxxxdom,DC=xxx-corman,DC=be
	Default-First-Site-Name\DC02 via RPC
		DSA object GUID: 132dec84-61d8-4f1a-b6f6-910b636416d3
		Last attempt @ Mon Sep 14 12:08:28 2015 CEST failed, result 2
(WERR_BADFILE)
		203 consecutive failure(s).
		Last success @ Sat Sep 12 15:29:54 2015 CEST

CN=Schema,CN=Configuration,DC=xxxxxxdom,DC=xxx-corman,DC=be
	Default-First-Site-Name\DC03 via RPC
		DSA object GUID: 7c74c33e-e1eb-4b48-9a3e-6c80d9c7bd8c
		Last attempt @ Mon Sep 14 11:50:42 2015 CEST was successful
		0 consecutive failure(s).
		Last success @ Mon Sep 14 11:50:42 2015 CEST

CN=Configuration,DC=xxxxxxdom,DC=xxx-corman,DC=be
	Default-First-Site-Name\DC02 via RPC
		DSA object GUID: 132dec84-61d8-4f1a-b6f6-910b636416d3
		Last attempt @ Mon Sep 14 12:08:28 2015 CEST failed, result 2
(WERR_BADFILE)
		552 consecutive failure(s).
		Last success @ Sat Sep 12 15:29:54 2015 CEST

CN=Configuration,DC=xxxxxxdom,DC=xxx-corman,DC=be
	Default-First-Site-Name\DC03 via RPC
		DSA object GUID: 7c74c33e-e1eb-4b48-9a3e-6c80d9c7bd8c
		Last attempt @ Mon Sep 14 11:50:42 2015 CEST was successful
		0 consecutive failure(s).
		Last success @ Mon Sep 14 11:50:42 2015 CEST

==== KCC CONNECTION OBJECTS ====

Connection --
	Connection name: 7a134b76-3f06-4acf-9dfc-16015880ec02
	Enabled        : TRUE
	Server DNS name :
	Server DN name  : CN=NTDS
Settings,CN=DC03,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=xxxxxxdom,DC=xxx-corman,DC=be
		TransportType: RPC
		options: 0x00000001
Warning: No NC replicated for Connection!
Connection --
	Connection name: afd45aa5-b8aa-45a1-9030-4d20bff9c54e
	Enabled        : TRUE
	Server DNS name :
	Server DN name  : CN=NTDS
Settings,CN=DC02,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=xxxxxxdom,DC=xxx-corman,DC=be
		TransportType: RPC
		options: 0x00000001
Warning: No NC replicated for Connection!


/usr/local/samba/bin/samba-tool drs replicate DC03 DC01
dc=xxxxxxdom,dc=xxx-corman,dc=be
ERROR(<class 'samba.drs_utils.drsException'>): DsReplicaSync failed -
drsException: DsReplicaSync failed (31, 'WERR_GENERAL_FAILURE')
  File "/usr/local/samba/lib/python2.6/site-packages/samba/netcmd/drs.py",
line 345, in run
    drs_utils.sendDsReplicaSync(self.drsuapi, self.drsuapi_handle,
source_dsa_guid, NC, req_options)
  File "/usr/local/samba/lib/python2.6/site-packages/samba/drs_utils.py",
line 83, in sendDsReplicaSync
    raise drsException("DsReplicaSync failed %s" % estr)


------------------------------------

DC02 is a test a should be removed from replication.

I cannot shutdown DC01 (my samba  4.1.4 DC)

Anyone can help me ?

regards

	Stéphane Purnelle


More information about the samba mailing list