Chapter 10. Managing Indexes

The scope of the search (base, one, sub)

The base of the search (the entry to use as a starting point for the search)

The attributes to sort

The filter of the search

For more information on specifying filters for searches, see Appendix B, Finding Directory Entries.

The LDBM database to which the entry that forms the base of the search belongs. You can only create browsing indexes in LDBM databases.

There is more information on ldapsearch options in the Directory Server Configuration, Command, and File Reference.

For example, create a browsing index to accelerate an ldapsearch on the entry ou=People,dc=example,dc=com held in the Example1 database with the following attributes:

The search base is ou=People,dc=example,dc=com

The search filter is ((objectclass=*)(objectclass=ldapsubentry))

The scope is one

The sorting order for the returned attributes is cn, givenName, o, ou, and sn

1.Run ldapmodify.1

ldapmodify -a -h server -p 389 -D "cn=directory manager" -w password

The ldapmodify utility binds to the server and prepares it to add an entry to the configuration file.

2.Add an entry which specifies the base, scope, and filter of the browsing index:

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))

• The cn contains the browsing index identifier, which specifies the entry on which to create

378

Page 398
Image 398
HP UX Red Hat Direry Server Software manual Managing Indexes