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

see tittle of question.
LVL 1
howartAsked:
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
 
0
 
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.
0
 
howartAuthor Commented:
Thanks, but have no time too test the solution.
Will assign points when I done the test.
Thanks for now
0
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.