How can I create startover with an empty db with open LDAP?

see tittle of question.
Who is Participating?
nisapusConnect With a Mentor Commented:
# /etc/init.d/ldap stop
# mv /var/lib/ldap /var/lib/ldap.bak
# mkdir /var/lib/ldap
# chown ldap /var/lib/ldap
# chmod 700 /var/lib/ldap
# /etc/init.d/ldap start
gheistConnect With a Mentor Commented:
remove all the files in data directory and slapd or slapadd will create new ones. slapcat-ing old database can dump older version database too.
howartAuthor Commented:
Thanks, but have no time too test the solution.
Will assign points when I done the test.
Thanks for now
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.