You are not logged in.

#1 2011-07-10 16:31:12

tinhtruong
Member
From: Australia
Registered: 2008-12-18
Posts: 117

[SOLVED]OpenLDAP did not start after update

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

#2 2011-07-10 17:00:07

tinhtruong
Member
From: Australia
Registered: 2008-12-18
Posts: 117

Re: [SOLVED]OpenLDAP did not start after update

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

Board footer

Powered by FluxBB