Running samba-tool ldapcmp against a 4.1 samba DC (DC-01) (installed sernet repo) and a 4.5.5 samba DC (DC-02) (compiled from src) both on CentOS 7 DC-01 was the original DC, DC-02 was joined as a secondary DC and synced its database from DC-01. When running samba-tool ldapcmp -v ldap://DC-01 ldap://DC-02 the comparison fails: SUMMARY --------- Attributes found only in ldap://DC-01: ou cn dc Attributes found only in ldap://DC-02: OU CN DC ERROR: Compare failed: -1 If I rewrite line 284 of lib64/python2.7/site-packages/samba/netcmd/ldapcmp.py from: name = self.get_attribute_name(key) to: name = self.get_attribute_name(key).lower() then everything passes OK.
*** This bug has been marked as a duplicate of bug 12302 ***