Chapter 10. Managing Indexes

cn=plugins,cn=config entry.

To create a new index for a particular database, add it to the

cn=index,cn=database_name,cn=ldbm database,cn=plugins,cn=config entry, where cn=database_name corresponds to the name of the database.

NOTE

Avoid creating entries under cn=config in the dse.ldif file. The cn=config entry in the simple, flat dse.ldif configuration file is not stored in the same highly scalable database as regular entries. As a result, if many entries, particularly entries that are likely to be updated frequently, are stored under cn=config, performance will probably suffer. Although we recommend you do not store simple user entries under cn=config for performance reasons, it can be useful to store special user entries such as the Directory Manager entry or replication manager (supplier bind DN) entry under cn=config since this centralizes configuration information.

For information on the LDIF update statements required to add entries, see Section 4, “LDIF Update Statements”.

For example, to create presence, equality, and substring indexes for the sn (surname) attribute in the Example1 database, do the following:

1.Open the Directory Server LDAP tool directory.1

cd /usr/lib/mozldap

2.Run ldapmodify.

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.

3.Add the LDIF entry for the new indexes:

dn: cn=sn,cn=index,cn=Example1,cn=ldbm database,cn=plugins,cn=config

1The LDAP tools referenced in this guide are Mozilla LDAP, installed with Directory Server in the

/usr/lib/mozldap directory on Red Hat Enterprise Linux 5 i386; directories for other platforms are listed in Section 2, “LDAP Tool Locations”. However, Red Hat Enterprise Linux systems also include LDAP tools from OpenLDAP. It is possible to use the OpenLDAP commands as shown in the examples, but you must use the -xargument to disable SASL and allow simple authentication.

374

Page 394
Image 394
HP UX Red Hat Direry Server Software manual To create a new index for a particular database, add it to, 374