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

Table 53 vlvindex options
DescriptionOption
Name of the database containing the entries to index.-n
Browsing index identifier to use to create browsing indexes.-T
11.2.5.3 Using a cn=tasks entry to create a browsing index
As an alternative to running the vlvindex script, it is possible to initiate an indexing task directly.
NOTE:
Running the indexing task is the same as running the vlvindex script.
The cn=tasks, cn=config entry in the Directory Server configuration is a container entry for
temporary entries that the server uses to manage tasks. Several common directory tasks have
container entries under cn=tasks, cn=config. Temporary task entries can be created 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.
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.2.5.4 Setting access control for VLV information
The default access control for the VLV index information is to allow anyone who has authenticated.
If a site requires anonymous users to use the VLV index information, modify the access control set
for cn: VLV Request Control in the Directory Server's configuration.
1. In a text editor, open the /etc/opt/dirsrv/slapd-instance_name/dse.ldif file.
2. Locate the oid=2.16.840.1.113730.3.4.9 entry.
dn: oid=2.16.840.1.113730.3.4.9,cn=features,cn=config
objectClass: top
objectClass: directoryServerFeature
oid: 2.16.840.1.113730.3.4.9
cn: VLV Request Control
aci: (targetattr != "aci")(version 3.0; acl "VLV Request Control";
allow( read, search, compare, proxy ) userdn = "ldap:///all" ;)
creatorsName: cn=server,cn=plugins,cn=config modifiersName: cn=server,cn=plugins,cn=config ...
3. Change "ldap:///all" to "ldap:///anyone" and save your changes.
11.3 Changing the width for indexed substring searches
By default, for a search to be indexed, the search string must be at least three characters long,
without counting any wildcard characters. For example, the string abc would be an indexed search
while ab* would not be. Indexed searches are significantly faster than unindexed searches, so
changing the minimum length of the search key is helpful to increase the number of indexed
searches.
460 Managing Indexes