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.
|
The parameter for this command is:
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.