From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 Description of problem: OpenLDAP 2.2.23 has difficulties in starting-up when __db.00* and log.00000000001 are initially not present (in /var/lib/ldap/directory). They are recreated by the startup-procees, but ownership is wrong (they are owned by root and not by ldap). OpenLDAP will not start if these files are not owned by ldap !! Version-Release number of selected component (if applicable): OpenLDAP 2.2.23 How reproducible: Always Steps to Reproduce: 1. delete __db.00* in /var/lib/ldap/directory 2. delete log.00000000001 in /var/lib/ldap/directory 3. startup Additional info:
This problem is made larger by the fact that /etc/init.d/ldap reports that slapd started successfully even though it didn't!
You are very right !!! Well, I "solved" the problem by not using bdb as the database, but switch back to ldbm. This does not scale very well but with <10000 entries, this is not severe. ps: at this moment running OpenLDAP 2.2.29
openldap-servers-2.3.30-2.fc6 has improved startup checks and stale locks should not be problem anymore