Author: techfox9
LDAP backup and reload ..
Tuesday, May 12th, 2009 @ 12:22 pm
To backup:
— cd /etc/openldap
— slapcat -l backup.ldif
To reload:
— stop ldap (/etc/init.d/ldap stop)
— cd /var/lib/ldap
— mv world world0
— mkdir /var/lib/ldap/world
— chown ldap:ldap /var/lib/ldap/world
— /etc/init.d/ldap start
— cd /etc/openldap
— slapadd -l backup.blah
— chown -R ldap:ldap /var/lib/ldap/world