Marcio Merlone
2020-Jun-30 18:50 UTC
[Samba] Trouble to keep replication in sync - W2008R2
Hi, I have 3 Debian Buster DC running Samba 4.12.3, each one on a site. Now I have to add a Windows 2008R2 server as DC, but failing miserably to stabilize it for the past 2 weeks. First, kcc did not created NTDS connections automatically, had to create them by hand. Some days have passed and now when I try to replicate from samba to windows, *both on same site*, I get this: root at araucaria:~# samba-tool drs replicate urucum araucaria DC=ad,DC=a1,DC=ind,DC=br ERROR(<class 'samba.drs_utils.drsException'>): DsReplicaSync failed - drsException: DsReplicaSync failed (8418, 'WERR_DS_DRA_SCHEMA_MISMATCH') ? File "/usr/lib/python3/dist-packages/samba/netcmd/drs.py", line 577, in run ??? drs_utils.sendDsReplicaSync(server_bind, server_bind_handle, source_dsa_guid, NC, req_options) ? File "/usr/lib/python3/dist-packages/samba/drs_utils.py", line 92, in sendDsReplicaSync ??? raise drsException("DsReplicaSync failed %s" % estr) root at araucaria:~# samba-tool ldapcmp ldap://urucum ldap://araucaria schema * Comparing [SCHEMA] context... * Objects to be compared: 1550 * Result for [SCHEMA]: SUCCESS root at araucaria:~# samba-tool ldapcmp ldap://urucum ldap://araucaria configuration * Comparing [CONFIGURATION] context... * Objects to be compared: 1693 ERROR(<class 'KeyError'>): uncaught exception - 'instanceType' ? File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186, in _run ??? return self.run(*args, **kwargs) ? File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 957, in run ??? if b1.diff(b2): ? File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 781, in diff ??? if object1 == object2: ? File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 549, in __eq__ ??? return self.cmp_attrs(other) ? File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 590, in cmp_attrs ??? if isinstance(self.attributes[x], list) and isinstance(other.attributes[x], list): root at araucaria:~# Any ideas? Thanks in advance. -- *Marcio Merlone*