PingDirectory

Comparing configuration entries using config-diff

Steps

  • Use config-diff to compare PingDirectory server configurations and produce a dsconfig batch 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 server2

    You can find more information about runtime options in Available command-line tools or the config-diff tool help.

    The config-diff tool doesn’t support connecting to different versions over LDAP. To compare configurations between servers of different versions:

    1. Copy the config/config.ldif file from the lower-version server to the higher-version server.

    2. 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>"