Creating Indexes
Chapter 10
Managing Indexes
405
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=MCC ou=People dc=example dc=com, cn=userRoot, cn=ldbm
database, cn=plugins, cn=config
objectClass: top
objectClass: vlvSearch
cn: MCC ou=People dc=example dc=com
vlvBase: ou=People, dc=example,dc=com
vlvScope: 1
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
ou=People,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
ou=People,dc=example,dc=com
entry (the
browsing index identifier).
The
vlvscope
attribute is
1
, indicating that the base for the search you want to
accelerate is
1
. A search base of
1
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))
.
The second entry you add specifies the sorting order you want for the returned
attributes:
dn: cn=by MCC ou=People dc=example dc=com,cn=MCC ou=People
dc=example dc=com, cn=userRoot, cn=ldbm database, cn=plugins, cn=
config
objectClass: top
objectClass: vlvIndex
cn: by MCC ou=People dc=example dc=com
vlvSort: cn givenname o ou sn
Summary of Contents for DIRECTORY SERVER 7.1
Page 1: ...Administrator s Guide Red Hat Directory Server Version7 1 May 2005 Updated February 2009 ...
Page 20: ...20 Red Hat Directory Server Administrator s Guide May 2005 Glossary 619 Index 635 ...
Page 22: ...22 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 26: ...26 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 78: ...Maintaining Referential Integrity 78 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 200: ...Assigning Class of Service 200 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 488: ...488 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 528: ...PTA Plug in Syntax Examples 528 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 572: ...572 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 612: ...Examples of LDAP URLs 612 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 634: ...634 Red Hat Directory Server Administrator s Guide May 2005 ...