Changing the LDAP changelog location using dsconfig non-interactive mode
Steps
-
Use
dsconfigto change the database location for the LDAP changelog, which by default is at<server-root>/db.Example:
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 thebackend-idproperty. -
Stop and restart the server.
Because the LDAP changelog backend was previous disabled, you do not need to manually relocate any existing database files.
Example:
$ bin/stop-server $ bin/start-server