OpenLdap first start: bdb_db_open: Warning - No DB_CONFIG file found

Issues related to software problems.
Post Reply
todd_dsm
Posts: 26
Joined: 2008/04/29 17:13:16
Contact:

OpenLdap first start: bdb_db_open: Warning - No DB_CONFIG file found

Post by todd_dsm » 2009/02/22 02:18:46

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 :-|

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

OpenLdap first start: bdb_db_open: Warning - No DB_CONFIG fi

Post by scottro » 2009/02/22 03:26:26

Thanks for posting the solution. I suspect it will help others along the way.

todd_dsm
Posts: 26
Joined: 2008/04/29 17:13:16
Contact:

Re: OpenLdap first start: bdb_db_open: Warning - No DB_CONFIG file found

Post by todd_dsm » 2009/02/22 16:32:48

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

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: OpenLdap first start: bdb_db_open: Warning - No DB_CONFIG file found

Post by scottro » 2009/02/22 18:19:23

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. :-)

Post Reply