1. Use dsconfig to change the database location for the LDAP changelog, which by default is at <server-root>/db.

    The following command sets the LDAP changelog backend to <server-root>/db2.

    $ bin/dsconfig set-backend-prop --backend-name changelog \
      --set "db-directory:db2" --set "enabled:true"

    Remember to include the LDAP connection parameters, such as host name, port, bindDN, and bindPassword.

    The database files are stored under <server-root>/db2/changelog. The files for this backend are stored in a sub-directory named after the backend-id property.

  2. Stop and restart the server.

    Because the LDAP changelog backend was previous disabled, you do not need to manually relocate any existing database files.

    $ bin/stop-server
    $ bin/start-server