
Chapter 10. Managing Indexes
326
• 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 2.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
objectClass:top
objectClass:nsIndex
cn:sn
nsSystemIndex:false
nsIndexType:pres
nsIndexType:eq
nsIndexType:sub
nsMatchingRule:2.16.840.1.113730.3.3.2.3.1
The
cn
attribute contains the name of the attribute to index, in this example the
sn
attribute.
The entry is a member of the
nsIndex
object class. The
nsSystemIndex
attribute is
false
,
indicating that the index is not essential to Directory Server operations. The multi-valued
nsIndexType
attribute specifies the presence (
pres
), equality (
eq
) and substring (
sub
) indexes.
Each keyword has to be entered on a separate line. The
nsMatchingRule
attribute specifies the
OID of the Bulgarian collation order.
You can use the keyword
none
in the
nsIndexType
attribute to specify that no indexes are to be
maintained for the attribute. This example temporarily disables the
sn
indexes on the
Example1
database by changing the
nsIndexType
to
none
:
Содержание DIRECTORY SERVER 8.0
Страница 18: ...xviii ...
Страница 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Страница 30: ...12 ...
Страница 112: ...94 ...
Страница 128: ...110 ...
Страница 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Страница 224: ...206 ...
Страница 324: ...306 ...
Страница 334: ...316 ...
Страница 358: ...340 ...
Страница 410: ...392 ...
Страница 420: ...402 ...
Страница 444: ...426 ...
Страница 454: ...436 ...
Страница 464: ...446 ...
Страница 484: ...466 ...
Страница 512: ...494 ...
Страница 522: ...504 ...