Chapter 10. Managing Indexes

Option

-w

-h

-p

Description

be a DN recognized by the Directory Server, and it must also have the authority to modify the entries.

Specifies the password associated with the distinguished name specified in the -Doption.

Specifies the name of the host on which the server is running.

Specifies the port number that the server uses.

Table 10.5. ldapdelete Options

After deleting the index entry, the presence, equality, and substring indexes for the sn attribute are no longer maintained by the Example1 database.

3.2.2. Running the db2index.pl Script

After deleting an indexing entry or some of the index types from an indexing entry, run the db2index.pl script to generate the new set of indexes to be maintained by the Directory Server. Once you run the script, the new set of indexes is active for any new data you add to your directory and any existing data in your directory.

To run the db2index.pl Perl script, do the following:

1.Open the Directory Server instance directory.2

cd /usr/lib/dirsrv/slapd-instance_name

2.Run the db2index.pl Perl script. For example:

db2index.pl-D "cn=Directory Manager" -w password -n Example1

For more information about using the db2index.pl Perl script, refer to Directory Server Configuration, Command, and File Reference. Table 10.6, “db2index Options” describes the

db2index.pl options used in the examples:

Option

-D

-w

Description

Specifies the DN of the administrative user.

Specifies the password of the administrative user.

384

Page 404
Image 404
HP UX Red Hat Direry Server Software manual Ldapdelete Options, Run the db2index.pl Perl script. For example