HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3098, May 2013)

The following table describes the ldapdelete options used in the example:
DescriptionOption
Specifies the distinguished name with which to authenticate to the server. The value must be a DN
recognized by the Directory Server, and it must also have the authority to modify the entries.
-D
Specifies the password associated with the distinguished name specified in the -D option.-w
Specifies the name of the host on which the server is running.-h
Specifies the port number that the server uses.-p
After deleting the two browsing index entries, the browsing index will no longer be maintained
by the Example1 database.
11.4.4.2 Running the vlvindex script
After deleting browsing indexing entries or unwanted attribute types from existing browsing indexing
entries, run the vlvindex script to generate the new set of browsing indexes to be maintained
by the Directory Server. After the script is run, the new set of browsing indexes is active for any
new data added to the directory and any existing data in the directory.
1. Stop the server.
/opt/dirsrv/slapd-instance_name/stop-slapd
For more information about the command to stop the Directory Server, see“Starting and
Stopping Servers” (page 19).
2. Run the vlvindex script.
/opt/dirsrv/slapd-instance_name/vlvindex -n Example1 -T \
"by MCC ou=people dc=example dc=com"
For more information about using the vlvindex script, see the HP-UX Directory Server
configuration, command, and file reference.
3. Start the server.
/opt/dirsrv/slapd-instance_name/start-slapd
Table 53 (page 460) describes the vlvindex options.
Alternatively, create a new task entry under cn=index, cn=tasks, cn=config to initiate an
indexing operation. This task entry requires a unique name (cn) and one other attribute,
nsIndexVLVAttribute, which gives the name of the browsing index definition entry to use to
generate the VLV index. This task is the same as running vlvindex.
For example:
ldapmodify -a -D "cn=directory manager" -w secret -p 389 -h server.example.com
dn: cn=example VLV index, cn=index, cn=tasks, cn=config
objectClass: top
objectClass: extensibleObject
cn: example VLV index
nsIndexVLVAttribute: "by MCC ou=people,dc=example,dc=com"
As soon as the task is completed, the entry is removed from the directory configuration.
The HP-UX Directory Server configuration, command, and file reference has more information on
running Directory Server tasks under the cn=tasks entries.
11.5 Managing indexes
Each index that the directory uses is composed of a table of index keys and matching entry ID lists.
This entry ID list is used by the directory to build a list of candidate entries that may match a client
11.5 Managing indexes 465