Comparing configuration entries using config-diff
Steps
-
Use
config-diffto compare PingDirectory server configurations and produce adsconfigbatch file needed to align the source with the target.Example:
The following example compares the current configurations of server1 and server2. The changes necessary to align server1’s configuration with server2 are written to the console. The same credentials are used to connect to both servers.
$ bin/config-diff --sourceHost server1 --sourceBindDN "cn=Directory Manager" \ --sourceBindPassword password --targetHost server2You can find more information about runtime options in Available command-line tools or the
config-difftool help.The
config-difftool doesn’t support connecting to different versions over LDAP. To compare configurations between servers of different versions:-
Copy the
config/config.ldiffile from the lower-version server to the higher-version server. -
Run one of the following commands on the higher-version server:
-
If the higher-version server is the source:
$ bin/config-diff --sourceLocal \ --targetFile "<lower-version config.ldif file>"
-
If the higher-version server is the target:
$ bin/config-diff --targetLocal \ --sourceFile "<lower-version config.ldif file>"
-
-