PingDirectory

Creating a new local DB index

Steps

  1. 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
  2. To view the index, run dsconfig with the get-local-db-index-prop option.

    Example:

    $ bin/dsconfig get-local-db-index-prop \
      --index-name roomNumber --backend-name userRoot
  3. Stop the PingDirectory server.

    Although you can rebuild an index with the server online, it is not recommended.

    Example:

    $ bin/stop-server
  4. To rebuild the index, run the rebuild-index tool.

    Example:

    $ bin/rebuild-index --baseDN dc=example,dc=com --index roomNumber
  5. Restart the PingDirectory server.

    Example:

    $ bin/start-server