![Netscape NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR Administrator'S Manual Download Page 359](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-1-administrator/netscape-directory-server-6-1-administrator_administrators-manual_1674675359.webp)
Creating Indexes
Chapter
10
Managing Indexes
359
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. Note that 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=
instance,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.
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR
Page 1: ...Administrator s Guide Netscape Directory Server Version6 1 August 2002...
Page 20: ...20 Netscape Directory Server Administrator s Guide August 2002...
Page 24: ...24 Netscape Directory Server Administrator s Guide August 2002...
Page 142: ...Using Referrals 142 Netscape Directory Server Administrator s Guide August 2002...
Page 440: ...Miscellaneous Tuning Tips 440 Netscape Directory Server Administrator s Guide August 2002...
Page 442: ...442 Netscape Directory Server Administrator s Guide August 2002...
Page 478: ...PTA Plug In Syntax Examples 478 Netscape Directory Server Administrator s Guide August 2002...
Page 498: ...498 Netscape Directory Server Administrator s Guide August 2002...
Page 538: ...Examples of LDAP URLs 538 Netscape Directory Server Administrator s Guide August 2002...