Creating a new local DB index
Steps
-
To create a new local DB index, run
dsconfig
with the--create-local-db-index
option 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
dsconfig
with theget-local-db-index-prop
option.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-index
tool.Example:
$ bin/rebuild-index --baseDN dc=example,dc=com --index roomNumber
-
Restart the PingDirectory server.
Example:
$ bin/start-server