Creating Indexes
dn: cn=sn,cn=index,cn=Example1,cn=ldbm database,cn=plugins,cn=config
objectClass:top
objectClass:nsIndex
cn:sn
nsSystemIndex:false
nsIndexType:none
For a complete list of collation orders and their OIDs, refer to Appendix D,
"Internationalization."
For more information about the index configuration attributes, see the Netscape
Directory Server Configuration, Command, and File Reference.
For more information about the
Netscape Directory Server Configuration, Command, and File Reference.
NOTE
Running the db2index.pl Script
Once you have created an indexing entry or added additional index types to an
existing indexing entry, run the
indexes to be maintained by the Directory Server. Once you run the script, the new
set of indexes is active for any new data you add to your directory and any existing
data in your directory.
To run the
From the command line, change to the following directory:
1.
/usr/netscape/servers/slapd- serverID /
where
Run the
2.
For more information about using this perl script, refer to Netscape Directory
Server Configuration, Command, and File Reference.
Two examples of generating indexes using the
Windows NT batch file:
..\bin\slapd\admin\bin\perl db2index.pl -D "cn=Directory Manager"
-w password -n ExampleServer -t sn
352
Netscape Directory Server Administrator's Guide • January 2002
You should always use the attribute's primary name (not the
attribute's alias) when creating indexes. The primary name of the
attribute is the first name listed for the attribute in the schema, for
example
for the userid attribute. See Table 10-3 on page 371 for
uid
a list of all primary and alias attribute names.
perl script:
db2index.pl
is the name of your directory server.
serverID
perl script.
db2index.pl
command-line utility, refer to the
ldapmodify
script to generate the new set of
db2index.pl
db2index.pl
follow:
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.01 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers