[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Deleting all Data



Sadik Kumlali wrote:

/etc/init.d/ldap stop


# /var/lib/ldap/example.com: 'directory' definition in 'slapd.conf' # that gives the path of folder in which database files reside
rm -rf /var/lib/ldap/example.com


/etc/init.d/ldap start

That's all!


Not quite. That also deletes the directory itself, which will cause slapd to fail to startup. This example would be better as

 rm -rf /var/lib/ldap/example.com/*

--
 -- Howard Chu
 Chief Architect, Symas Corp.       Director, Highland Sun
 http://www.symas.com               http://highlandsun.com/hyc
 Symas: Premier OpenSource Development and Support