Indexing client attributes in PingDS
If you use PingDS to store OAuth client records for PingFederate, you must index the client attributes.
About this task
Index these OAuth client attributes using the following procedure.
| Attribute name | Index type |
|---|---|
|
equality |
|
ordering |
|
substring |
|
equality |
|
ordering |
|
substring |
|
ordering |
Steps
-
Create the indexes using the PingDS
dsconfigutility.The
dsconfigutility is interactive, letting you enter command arguments. For example:$ dsconfig create-backend-index \ --hostname localhost \ --port 4444 \ --bindDN uid=admin \ --bindPassword password \ --backend-name dsEvaluation \ --index-name pf-oauth-client-id \ --set index-type:equality \ --set index-type:ordering \ --set index-type:substring \ --usePkcs12TrustStore /path/to/opendj/config/keystore \ --trustStorePassword:file /path/to/opendj/config/keystore.pin \ --no-prompt$ dsconfig create-backend-index \ --hostname localhost \ --port 4444 \ --bindDN uid=admin \ --bindPassword password \ --backend-name dsEvaluation \ --index-name pf-oauth-client-name \ --set index-type:equality \ --set index-type:ordering \ --set index-type:substring \ --usePkcs12TrustStore /path/to/opendj/config/keystore \ --trustStorePassword:file /path/to/opendj/config/keystore.pin \ --no-prompt$ dsconfig create-backend-index \ --hostname localhost \ --port 4444 \ --bindDN uid=admin \ --bindPassword password \ --backend-name dsEvaluation \ --index-name pf-oauth-client-last-modified \ --set index-type:ordering \ --usePkcs12TrustStore /path/to/opendj/config/keystore \ --trustStorePassword:file /path/to/opendj/config/keystore.pin \ --no-prompt -
After creating the indexes, build them using the
rebuild-indexutility.The following example builds the required indexes.
$ rebuild-index \ --hostname localhost \ --port 4444 --bindDN uid=admin --bindPassword password --baseDN dc=example,dc=com --index pf-oauth-client-id \ --index pf-oauth-client-name \ --index pf-oauth-client-last-modified \ --usePkcs12TrustStore /path/to/opendj/config/keystore --trustStorePassword:file /path/to/opendj/config/keystore.pin