[Samba] Error while demoting Samba 4 DC

Marcio Demetrio Bacci marciobacci at gmail.com
Fri May 26 03:48:50 UTC 2017


Hi,

I have 2 DC Samba 4 in my network.

My new DC is Samba 4.6.3
My Old DC is Samba 4.2.1

I want demote my DC (old) with Samba 4.2.1, but the following message
appears:

~# samba-tool domain demote -Uadministrator
Using dc1.empresa.com.br as partner server for the demotion
Password for [EMPRESA\administrator]:
Deactivating inbound replication
Asking partner server dc1.empresa.com.br to synchronize from us
Error while demoting, re-enabling inbound replication
ERROR(<class 'samba.drs_utils.drsException'>): Error while sending a
DsReplicaSync for partion
CN=Schema,CN=Configuration,DC=empresa,DC=com,DC=br - drsException:
DsReplicaSync failed (2, 'WERR_BADFILE')
  File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/domain.py",
line 712, in run
    sendDsReplicaSync(drsuapiBind, drsuapi_handle, ntds_guid, str(part),
drsuapi.DRSUAPI_DRS_WRIT_REP)
  File "/opt/samba/lib/python2.7/site-packages/samba/drs_utils.py", line
83, in sendDsReplicaSync
    raise drsException("DsReplicaSync failed %s" % estr)


The "samba-tool drs showrepl" command looks is OK.

Would anybody know what is the problem?

Regards,

Márcio Bacci


More information about the samba mailing list