[Samba] DC sync

Jefferson B. Limeira jbl at internexxus.com.br
Wed Sep 2 16:36:12 UTC 2015


Morning,

On a DC:
[root at BPCTASRVSDC003 ~]# samba-tool drs showrepl | grep failure
		0 consecutive failure(s).
		0 consecutive failure(s).
		0 consecutive failure(s).
		0 consecutive failure(s).
		0 consecutive failure(s).
		0 consecutive failure(s).
		0 consecutive failure(s).
		0 consecutive failure(s).
		0 consecutive failure(s).
		0 consecutive failure(s).
		0 consecutive failure(s).
		0 consecutive failure(s).
		0 consecutive failure(s).
		0 consecutive failure(s).
		0 consecutive failure(s).
Force sync
[root at BPCTASRVSDC003 ~]# samba-tool drs replicate BPCTASRVSDC003 
SRVSMB4-PDC DC=bp,DC=net
Replicate from SRVSMB4-PDC to BPCTASRVSDC003 was successful.

Looking for one problematic workstation... none
[root at BPCTASRVSDC003 ~]# ldbsearch -H /var/lib/samba/private/sam.ldb 
dNSHostName=CTA1ETTIC018615.bp.net | grep ^whenChanged
[root at BPCTASRVSDC003 ~]#

Other DC:
[root at SRVSMB4-PDC ~]# ldbsearch -H /var/lib/samba/private/sam.ldb 
dNSHostName=CTA1ETTIC018615.bp.net | grep ^whenChanged
whenChanged: 20150902153005.0Z
[root at SRVSMB4-PDC ~]#
[root at SRVSMB4-PDC ~]# samba-tool ldapcmp ldap://SRVSMB4-PDC 
ldap://BPCTASRVSDC003 -Uadministrator domain 
--filter=whenChanged,pwdLastSet
...

SUMMARY
---------

Attributes with different values:

     displayName
     sAMAccountName
     memberOf
     userAccountControl
     dNSHostName
     member
     servicePrincipalName

Attributes found only in ldap://BPCTASRVSDC003:

     displayName

Same version on both DCs
[root at SRVSMB4-PDC ~]# samba --version
Version 4.2.3-SerNet-RedHat-18.el6


Any idea? It's possible 'merge' databases?

-- 
[]'s Jefferson B. Limeira
jbl at internexxus.com.br
https://br.linkedin.com/in/jlimeira
(41) 9928-8628



More information about the samba mailing list