Creating Browsing Indexes from the Command-Line
329
• The LDBM database to which the entry that forms the base of the search belongs. You can only
create browsing indexes in LDBM databases.
There is more information on
ldapsearch
options in the
Directory Server Configuration, Command,
and File Reference
.
For example, create a browsing index to accelerate an
ldapsearch
on the entry
ou=People,dc=example,dc=com
held in the
Example1
database with the following attributes:
• The search base is
ou=People,dc=example,dc=com
• The search filter is
(|(objectclass=*)(objectclass=ldapsubentry))
• The scope is
one
• The sorting order for the returned attributes is
cn
,
givenName
,
o
,
ou
, and
sn
1. Run
ldapmodify
.
1
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.
2. Add an entry which 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 to create
the browsing index; in this example, the
ou=People,dc=example,dc=com
entry. Red Hat
recommends using the
dn
of the entry for the 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 scope for the search you want to accelerate is
1
. A search scope 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))
.
3. Add the second entry, to specify the sorting order 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
Содержание DIRECTORY SERVER 8.0
Страница 18: ...xviii ...
Страница 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Страница 30: ...12 ...
Страница 112: ...94 ...
Страница 128: ...110 ...
Страница 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Страница 224: ...206 ...
Страница 324: ...306 ...
Страница 334: ...316 ...
Страница 358: ...340 ...
Страница 410: ...392 ...
Страница 420: ...402 ...
Страница 444: ...426 ...
Страница 454: ...436 ...
Страница 464: ...446 ...
Страница 484: ...466 ...
Страница 512: ...494 ...
Страница 522: ...504 ...