Hey Victor,
thanks four your long helpful answer.
Yes, it is the Redhat provided openldap-servers-2.4.22-7.el6.i386, because compiling from source (on RH 5!) did not work for me :-( (s. other discussion)
For me I'd like to stay with the RH Packages, as compiling is not yet part of my daily business ;-) But things may change....
Before I started to try your suggestions, I restarted my testsystem and 'just' launched
slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d
and adjusted the file permissions.
And voila, my slapd config is build and the server starts without errors.
All I did was restarting the system, no change to the config.
So something had a hick-up.
Regards . Götz
Am 08.12.10 18:30, schrieb Gattegno, Victor (GCC - Software):
Hello Götz,
Which OpenLDAP 2.4 version do you use? The one of RHEL 6?
Or the one (OpenLDAP 2.4.23) from http://www.openldap.org? Then slapd.conf is : /usr/local/etc/openldap/slapd.conf
I would recommend you OpenLDAP 2.4.23 from http://www.openldap.org associated with BDB recommended-version: http://www.openldap.org/doc/admin24/appendix-recommended-versions.html
Check with: locate slapd slapd -V
db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2).
It seems that slaptest saw that your configuration expects a LDAP database in /var/lib/ldap, which doesn't exist... I guess that you have "directory /var/lib/ldap" in your slapd.conf, then you should have a database associated...
So, first, check your slapd.conf content.
After that, test it through: slaptest -f /etc/openldap/slapd.conf
Once your slapd.conf is ok, you can convert it through: slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d Or (if OpenLDAP 2.4.23) through: slaptest -f /usr/local/etc/openldap/slapd.conf -F /usr/local/etc/openldap/slapd.d
Rgds, Victor
-----Original Message----- From: openldap-technical-bounces@OpenLDAP.org [mailto:openldap-technical-bounces@OpenLDAP.org] On Behalf Of Götz Reinicke - IT-Koordinator Sent: mercredi 8 décembre 2010 16:53 To: openldap-technical@openldap.org Subject: Drives me crazy .. openLDAP 2.4 - migrate config from 2.3
Hey,
I recently started to get used to Red Hat Enterprise 6 with openldap 2.4 and the main migration point is the 'new' config style.
I removed my test-database (I have a ldif-backup) files and the default config from my testsystem.
I followed the RH guide [1], but now get an error with my testsystem while lauching this command:
slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d
bdb_db_open: database "dc=filmakademie,dc=de": db_open(/var/lib/ldap/id2entry.bdb) failed: No such file or directory (2).
backend_startup_one (type=bdb, suffix="dc=filmakademie,dc=de"): bi_db_open failed! (2)
What may I have missed? Any suggestions? Thanks a lot for pointing me into the right direction!
/Götz
[1] http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html-single/Mig...