# cd /var/db/openldap-ldbm # ldbmcat -n id2entry.dbb >/tmp/export.ldif ... # ldif2ldbm -i /tmp/export.ldifClick for examples of LDAP records in LDIF format
See man 5 ldif
for more information about the ldif file format
dn: cn=fred,dc=wibble,dc=org changetype: add objectclass: person cn: fred sn: flintstone mail: fred@bedrock.org userPassword: b@rnEY description: dino driver dn: cn=fred,dc=wibble,dc=org changetype: modify replace: mail mail: manager@bedrock.org - add: jpegPhoto jpegPhoto: /tmp/modme.jpeg - delete: description -The only difference between 'ldapadd' and 'ldapmodify' is the default value for 'changetype:' if you omit it.
See man 5 slapd.replog
for more information about this form
of ldif