ldbmcat

The ldbmcat command is used to convert a slapd LDBM database to the LDAP Directory Interchange Format (LDIF) as defined in "ldif2ldbm." It opens the id2entryfile file for the database to be converted and writes the corresponding LDIF output to standard output.


Syntax

 
ldbmcat [ -n ] id2entryfile
 

The parameter for this command is:

-n  

This option specifies that ldbmcat should not print entry IDs when it dumps the database. The printing of entry IDs is essential if you are going to use the LDIF format produced as input to ldif2index, 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.backup, type the following command:

 
# ldbmcat -n id2entry.dbb > ldif.backup
 

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

 
# ldbmcat id2entry.dbb > ldif.newind
 
# ldif2index -i ldif.newind -f slapd.config mail
 


Note - To ensure consistency of the database, the slapd daemon should not be running (or must at least not be in read-write mode) when you do this.



Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved.