HP-UX Directory Server 8.1 administrator guide

For full information on ldapdelete options, see the HP-UX Directory Server configuration,
command, and file reference.
2. To delete this browsing index, delete the two corresponding browsing index entries:
dn: cn=MCC ou=People dc=example dc=com, cn=userRoot, cn=ldbm database, cn=plugins, cn=config
objectClass: top
objectClass: vlvSearch
cn: MCC ou=People dc=example dc=com
vlvBase: ou=People, dc=example,dc=com
vlvScope: 1 vlvFilter: (|(objectclass=*)(objectclass=ldapsubentry))
dn: cn=by MCC ou=People dc=example dc=com,cn=MCC ou=People
dc=example dc=com, cn=userRoot, cn=ldbm database, cn=plugins,cn=config
objectClass: top
objectClass: vlvIndex
cn: by MCC ou=People dc=example dc=com
vlvSort: cn givenName o ou sn
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”.
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 11-4 “vlvindex options” 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
11.4 Deleting indexes 467