![Netscape NETSCAPE DIRECTORY SERVER 6.02 Скачать руководство пользователя страница 357](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-02/netscape-directory-server-6-02_administrators-manual_1674673357.webp)
Creating Indexes
Chapter
10
Managing Indexes
357
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 /usr/netscape/servers/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 need to add two browsing index entries which define your browsing
index.
The first entry you add specifies the base, scope and filter of the browsing index:
dn: cn="dc=example,dc=com",cn=Example1,cn=ldbm
database,cn=plugins,cn=config
objectClass:top
objectClass:vlvSearch
cn:"dc=example,dc=com"
vlvbase:"dc=example,dc=com"
vlvscope:one
vlvfilter:(|(objectclass=*)(objectclass=ldapsubentry))
The
cn
contains the browsing index identifier which specifies the entry on which
you want to create the browsing index, in this example the
"dc=example,dc=com"
entry. We recommend you use the
dn
of the entry for your browsing index
identifier, which is, the approach adopted by the Directory Server Console, to
prevent identical browsing indexes from being created. The entry is a member of
the
vlvSearch
object class. The
vlvbase
attribute value specifies the entry on
which you want to create the browsing index, in this example the
"dc=example,dc=com"
entry (that is the browsing index identifier). The
vlvscope
attribute is
one
, indicating that the base for the search you want to accelerate is
one
.
A search base of
one
means that only the immediate children of the entry specified
in the
cn
attribute, and not the entry itself, will be searched. The
vlvfilter
specifies the filter to be used for the search, in this example
(|(objectclass=*)(objectclass=ldapsubentry))
.
NOTE
You can only create browsing indexes in ldbm databases.
Содержание NETSCAPE DIRECTORY SERVER 6.02
Страница 1: ...Administrator s Guide Netscape Directory Server Version6 02 May 2002 ...
Страница 16: ...16 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 20: ...20 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 40: ...Starting the Server in Referral Mode 40 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 74: ...Maintaining Referential Integrity 74 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 138: ...Using Referrals 138 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 258: ...Compatibility with Earlier Releases 258 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 274: ...Setting Resource Limits Based on the Bind DN 274 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 330: ...Solving Common Replication Conflicts 330 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 374: ...Attribute Name Quick Reference Table 374 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 390: ...Configuring LDAP Clients to Use SSL 390 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 412: ...Monitoring Database Link Activity 412 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 432: ...Miscellaneous Tuning Tips 432 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 434: ...434 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 468: ...PTA Plug In Syntax Examples 468 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 488: ...488 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 502: ...Storing Information in Multiple Languages 502 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 522: ...Searching an Internationalized Directory 522 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 528: ...Examples of LDAP URLs 528 Netscape Directory Server Administrator s Guide May 2002 ...