Deleting Browsing Indexes from the Command-Line
335
2. Running the
vlvindex
script to generate the new set of browsing indexes to be maintained by
the server (
Section 10.3.4.2, “Running the vlvindex Script”
).
The actual entries for an alphabetical browsing index and virtual list view are the same. The following
sections describe the steps involved in deleting browsing indexes.
10.3.4.1. Deleting a Browsing Index Entry
Use the
ldapdelete
command-line utility to either delete browsing indexing entries or
edit existing browsing index entries. To delete browsing indexes for a particular database,
remove the browsing index entries from the
cn=index,cn=
database_name
,cn=ldbm
database,cn=plugins,cn=config
entry, where
cn=
database_name
corresponds to the name of
the database.
For example, there is a browsing index for accelerating
ldapsearch
operations on the entry
ou=People,dc=example,dc=com
. It held in the
Example1
database where the search
base is
ou=People,dc=example,dc=com
, the search filter is
(|(objectclass=*)
(objectclass=ldapsubentry))
, the scope is
1
, and the sorting order for the returned attributes is
cn
,
givenName
,
o
,
ou
, and
sn
.
1. Run
ldapdelete
.
1
ldapdelete-D "cn=Directory Manager" -w password -h ExampleServer
-p 389 "cn=MCC ou=People dc=example dc=com, cn=userRoot, cn=ldbm database, cn=plugins,
cn=config"
"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"
For full information on
ldapdelete
options, see the
Directory Server Configuration, Command,
and File Reference
.
2. To delete this browsing index, delete the two corresponding browsing index entries:
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))
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
The following table describes the
ldapdelete
options used in the example:
Option
Description
-D
Specifies the distinguished name with which to
authenticate to the server. The value must be
a DN recognized by the Directory Server, and
Содержание 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 ...