The Samba-Bugzilla – Bug 12599
samba-tool ldapcmp case-sensitive for attributes
Last modified: 2017-02-23 14:32:11 UTC
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:
Attributes found only in ldap://DC-01:
Attributes found only in ldap://DC-02:
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 ***