LDAP database management tools

The index-generation tools

Once you have configured things to your liking, you create the indexes by running ldif2ldbm and the other index-generation programs. Normally, these are invoked automatically, but they may, if necessary, be executed on the command line.

ldif2ldbm
Creates indexes. See the ldif2ldbm(1Mldap) manual page for details of command line options and use.

ldif2index
Sometimes it may be necessary to create a new attribute index file without disturbing the rest of the database. This is possible using ldif2index(1Mldap). Which indexes are built (for example, equality, substring, and so on) is controlled by the corresponding index line in the slapd configuration file.

You can use the ldbmcat program to create a suitable LDIF input file from an existing LDBM database.

ldif2id2entry
Normally invoked from ldif2ldbm. It is used to convert an LDIF text file into an id2entry index, and its options and usage are described on the ldif2id2entry(1Mldap) manual page.

ldif2id2children
Normally invoked from ldif2ldbm. It is used to convert an LDIF text file into id2children and dn2id indexes. Occasionally, it may be necessary to run this program yourself, for example if one of these indexes has become corrupted. Its command line invocation and usage are described on the ldif2id2children(1Mldap) manual page.

You can use the ldbmcat program to create a suitable LDIF input file from an existing LDBM database.

ldbmcat
The ldbmcat program is used to convert an id2entry index back into its LDIF text format. This can be useful when you want to make a human-readable backup of your database, or as an intermediate step in creating a new index using the ldif2index program. See ldbmcat(1Mldap) for details.

ldif
The ldif(1Mldap) program is used to convert arbitrary data values to LDIF format. This can be useful when writing a program or script to create the LDIF file you will feed into the ldif2ldbm program, or when writing a SHELL backend.

© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999