When I run slapcat or restart slapd on Debian 6, OpenLdap 2.4.23-7.32.4.23-7.3, I see this warning:
hdb_db_open: warning - no DB_CONFIG file found in directory /var/lib/ldap: (14).
Expect poor performance for suffix "dc=i-tracing,dc=lan".
But when I take a look:
[root@xxx-ldap:/etc/ldap]# ls -lh /var/lib/ldap
total 5,8M
[...]
-rw-r--r-- 1 openldap openldap 3,1K 8 nov. 12:00 DB_CONFIG
[...]
And
ps aux | grep openldap
openldap 22919 4.4 1.5 87204 5860 ? SLsl 12:20 0:02 /usr/sbin/slapd -h ldaps://xxx-ldap.xxx.lan:636/ ldap://127.0.0.1:389 -g openldap -u openldap -f /etc/ldap/slapd.conf
Do you know what can I do in order to show Slapd that DB_CONFIG is really here, in /var/lib/ldap ?
NB: Even when doing this:
service slapd stop
cp /tmp/DB_CONFIG /var/lib/ldap/
chown openldap:openldap /var/lib/ldap/DB_CONFIG
service slapd start
It keeps telling that there's no DB_CONFIG file in /var/lib/ldap !?!