ldbmcat(1Mldap)


ldbmcat -- LDBM-to-LDIF database format conversion utility

Synopsis

/usr/bin/ldbmcat [-n] id2entry-file

Description

The ldbmcat program is used to convert a slapd(1Mldap) LDBM database to the text LDAP Directory Interchange Format (LDIF). It opens the given id2entry-file and writes the corresponding LDIF output to standard output.

The id2entry-file is located in the directory specified by the directory entry in the /usr/bin/slapd.conf (see slapd.conf(4ldap)) file for a particular daemon configuration. For daemon configurations created by the LDAP Manager, they are located in a directory under /var/ldap/databases/id where id is the identifier of a particular daemon.

See Configuring and administering LDAP for more details on using this program.

Options

-n
Specifies that ldbmcat should not print entry IDs when it dumps out the database. Note that this is essential if you are going to use the LDIF format produced as input to ldif2index(1Mldap), for example, to create a new index file for use with an existing database.

Examples

To make a text backup of your LDBM database and put it in a file called ldif, type:

/usr/bin/ldbmcat -n id2entry.dbb > ldif

To create a new index for the mail attribute, type:

/usr/bin/ldbmcat id2entry.dbb > ldif
/usr/bin/ldif2index -i ldif -f slapd-config-file mail

Note that slapd(1Mldap) should not be running (at least, not in read-write mode) when you do this, in order to ensure consistency of the database.

References

Intro(3ldap), ldif(4ldap), ldif2ldbm(1Mldap), slapd(1Mldap)

Configuring and administering LDAP


30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.