[Samba] Error Removing Samba Server from Domain

Tim Beale timbeale at catalyst.net.nz
Mon Jul 29 22:15:04 UTC 2019

I think this relates to the previous problem you posted about
replication not working (which is probably due to the
WERR_DS_DRA_SCHEMA_MISMATCH error you're hitting).

I think the demote command is trying to replicate out to another DC one
last time, so that you don't lose any local modifications to the local
DC's database. This is failing.

Try using the --remove-other-dead-server option instead, e.g.

samba-tool domain demote -UAdministrator

On 30/07/19 8:53 AM, Marcio Demetrio Bacci via samba wrote:
> Hi,
> I need to remove my Samba 4 server from the domain and the following error
> is happening:
> samba-tool domain demote -Uadministrator
> Using WIN-DC1.empresa.com.br as partner server for the demotion
> Password for [EMPRESA\capbacci]:
> Deactivating inbound replication
> Asking partner server WIN-DC1.empresa.com.br to synchronize from us
> Error while replicating out last local changes from
> 'DC=empresa,DC=com,DC=br' for demotion, re-enabling inbound replication
> ERROR(<class 'samba.WERRORError'>): Error while sending a DsReplicaSync for
> partition 'DC=empresa,DC=com,DC=br' - (8418, 'WERR_DS_DRA_SCHEMA_MISMATCH')
>   File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 787,
> in run
>     drsuapiBind.DsReplicaSync(drsuapi_handle, 1, req1)
> I had placed in the domain without problems last week.
> Can anybody help me?
> Regards,
> Márcio Bacci

More information about the samba mailing list