Comparing PingDirectory servers for missing entries only using ldap-diff
Steps
-
To compare two PingDirectory servers and return only those entries that are missing on one of the servers, use
ldap-diff
with the--missingOnly
option.This can significantly reduce the runtime for this utility.
Example:
$ bin/ldap-diff --outputLDIF difference.ldif \ --sourceHost server1.example.com --sourcePort 1389 \ --sourceBindDN "cn=Directory Manager" --sourceBindPassword secret1 \ --targetHost server2.example.com --targetPort 2389 \ --targetBindDN "cn=Directory Manager" --targetBindPassword secret2 \ --baseDN dc=example,dc=com --searchFilter "(objectclass=*)" "^userpassword" \ --missingOnly