Hey all,
I'm stepping out with LDAP for the first time. It's up and running. My Question is really closer to DB4, the Berkely database.
When I start the ldap service I get this output:
[code]
# service ldap restart
Stopping slapd: [ OK ]
Checking configuration files for slapd: bdb_db_open: Warning - No DB_CONFIG file found in directory /var/lib/ldap: (2)
Expect poor performance for suffix dc=example,dc=com.
config file testing succeeded
[ OK ]
Starting slapd: [ OK ]
[/code]
===
This is a first...
by the time I posted this I answered my own question. So, for those impatient souls like myself, here's the answer:
Add this option somewhere in slapd.conf:
cachesize 2000 (example only) a non-negative integer
---
then restart the service:
# service ldap restart
the error will just go away
===
I should have just gone to make a sandwich first :-|
OpenLdap first start: bdb_db_open: Warning - No DB_CONFIG file found
OpenLdap first start: bdb_db_open: Warning - No DB_CONFIG fi
Thanks for posting the solution. I suspect it will help others along the way.
Re: OpenLdap first start: bdb_db_open: Warning - No DB_CONFIG file found
OR...
cp /etc/openldap/DB_CONFIG.example /var/lib/ldap/DB_CONFIG
===
This file provides a good starter point for the database. This would require tuning for a larger network of users.
Looking at it now, there were so many great big bread crumb clues :-D
cp /etc/openldap/DB_CONFIG.example /var/lib/ldap/DB_CONFIG
===
This file provides a good starter point for the database. This would require tuning for a larger network of users.
Looking at it now, there were so many great big bread crumb clues :-D
Re: OpenLdap first start: bdb_db_open: Warning - No DB_CONFIG file found
It's always like that. As soon as you post on a forum or mailing list--you see the answer. Then you hurry to post that you found it before someone points out the obvious, and then, after that, you see 4 other ways to do it.
There's a saying that in Unix, there's always more than one way to do things. There's a corollary that someone will always think your way is wrong. :-)
There's a saying that in Unix, there's always more than one way to do things. There's a corollary that someone will always think your way is wrong. :-)