Backup slapcat -v > openldap.ldif Restore /etc/init.d/slapd stop rm -rf /var/lib/ldap/* slapadd -l openldap.ldif chown -R openldap: /var/lib/ldap /etc/init.d/slapd start