5.0 out of 5 based on 10 votes

Bewertung: 5 / 5

Stern aktivStern aktivStern aktivStern aktivStern aktiv
 

How to Export and Import a Ldap Database.

Export your DB with slapcat:

slapcat > ldif

Import the DB with slapadd (make sure the LDAP server is stopped):

service ldap stop
slapadd -l ldif

Start your LDAP:

service ldap start


Sometime you get a errror that the same data already exist in the Database. To drop the old database (CentOS):

cd /var/lib/ldap/
rm -rf *

MAKE SURE YOU ONLY DELTE THE DATA IN /var/lib/ldap/ !