
Creating Indexes
400
Red Hat Directory Server Administrator’s Guide • May 2005
First, type the following to change to the directory containing the utility:
cd
serverRoot
/shared/bin
Run the
ldapmodify
command-line utility as follows:
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.
Next, you add the following 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 you want 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.
Specifying an index entry with no value in the
nsIndexType
attribute results in all
indexes (except international) being maintained for the specified attribute. For
example, suppose instead that you specify the following entry for your new
sn
indexes:
dn: cn=sn,cn=index,cn=
database_name
,cn=ldbm
database,cn=plugins,cn=config
objectClass:top
objectClass:nsIndex
cn:sn
nsSystemIndex:false
nsIndexType:
This new entry results in all indexes for the
sn
(surname) attribute.
Содержание DIRECTORY SERVER 7.1
Страница 1: ...Administrator s Guide Red Hat Directory Server Version7 1 May 2005 Updated February 2009 ...
Страница 20: ...20 Red Hat Directory Server Administrator s Guide May 2005 Glossary 619 Index 635 ...
Страница 22: ...22 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 26: ...26 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 78: ...Maintaining Referential Integrity 78 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 200: ...Assigning Class of Service 200 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 278: ...Compatibility with Earlier Releases 278 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 374: ...Troubleshooting Replication Related Problems 374 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 478: ...Using the Management Information Base 478 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 488: ...488 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 528: ...PTA Plug in Syntax Examples 528 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 545: ...About Windows Sync Chapter 18 Windows Sync 545 Figure 18 1 Active Directory Directory Server Synchronization Process ...
Страница 572: ...572 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 586: ...Storing Information in Multiple Languages 586 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 606: ...Searching an Internationalized Directory 606 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 612: ...Examples of LDAP URLs 612 Red Hat Directory Server Administrator s Guide May 2005 ...
Страница 634: ...634 Red Hat Directory Server Administrator s Guide May 2005 ...