You are not logged in.
Hi everyone,
I've just upgraded my openldap from a previous version (I believe it's 2.4.23) to the latest version from the repo (2.4.24-2) and it did not start at boot time, I've tried to manually start it from the command line:
[root@apollo openldap]# /etc/rc.d/slapd restart
:: Stopping OpenLDAP [FAIL]
:: Starting OpenLDAP [DONE]
[root@apollo openldap]# /etc/rc.d/slapd restart
:: Stopping OpenLDAP [FAIL]
:: Starting OpenLDAP [DONE] It *seems* to start fine, but it did not (the evidence is the next restart cannot stop it due to the lacking of the pid file from the previous start).
I use openldap to centralize all the authentication and authorization to most the services in my company, this is a huge problem for us!
Any help would be welcome!
Many thanks in advance!
Last edited by tinhtruong (2011-07-10 17:01:05)
Offline
I've found the answer. It's because the version of bdb change from 5.1 to 5.2. Here is what I've done to solve it:
-Change to the directory that openldap store its database (e.g /var/lib/openldap/openldap-data)
-For every file with the extension .bdb, run the command db_upgrade <filename>.bdb.
Hope that helps others!
Offline