Creating a new local DB index
Steps
-
To create a new local DB index, run
dsconfigwith the--create-local-db-indexoption and the--index-name,--backend-name, and--set index-type:<value> options.Example:
$ bin/dsconfig create-local-db-index \ --index-name roomNumber --backend-name userRoot \ --set index-type:equality -
To view the index, run
dsconfigwith theget-local-db-index-propoption.Example:
$ bin/dsconfig get-local-db-index-prop \ --index-name roomNumber --backend-name userRoot -
Stop the PingDirectory server.
Although you can rebuild an index with the server online, it is not recommended.
Example:
$ bin/stop-server -
To rebuild the index, run the
rebuild-indextool.Example:
$ bin/rebuild-index --baseDN dc=example,dc=com --index roomNumber -
Restart the PingDirectory server.
Example:
$ bin/start-server