![Netscape NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR Administrator'S Manual Download Page 363](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-1-administrator/netscape-directory-server-6-1-administrator_administrators-manual_1674675363.webp)
Creating Indexes
Chapter
10
Managing Indexes
363
Adding a Browsing Index Entry
The type of browsing index entry you want to create depends on the type of
ldapsearch
attribute sorting you want to accelerate. It is important to take the
following into account:
•
The scope of the search (base, one, sub).
For more information on the
ldapsearch -s
option, which allows you to
specify the scope of searches, see the Netscape Directory Server Configuration,
Command, and File Reference.
•
The base of the search (the entry you want to use as a starting point for the
search).
For more information on the
ldapsearch -b
option, which allows you to
specify the base of searches, see the Netscape Directory Server Configuration,
Command, and File Reference.
•
The attributes you want 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. Note that you can only create browsing indexes in ldbm databases.
For example, you want to create a browsing index to accelerate an
ldapsearch
on
the entry
"dc=example,dc=com"
held in the
Example1
database where
the search base is
"dc=example,dc=com"
,
the search filter is
(|(objectclass=*)(objectclass=ldapsubentry))
,
the scope is
one
, and
the sorting order for the returned attributes is
cn
,
givenname
,
o
,
ou
, and
sn
.
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.
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...