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

Issues related to software problems.

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

Postby 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: Select all
# 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  ]


===
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 :-|
todd_dsm
 
Posts: 26
Joined: 2008/04/29 17:13:16

OpenLdap first start: bdb_db_open: Warning - No DB_CONFIG fi

Postby scottro » 2009/02/22 03:26:26

Thanks for posting the solution. I suspect it will help others along the way.
scottro
Forum Moderator
 
Posts: 1715
Joined: 2007/09/03 21:18:09
Location: NYC

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

Postby 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
todd_dsm
 
Posts: 26
Joined: 2008/04/29 17:13:16

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

Postby 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. :-)
scottro
Forum Moderator
 
Posts: 1715
Joined: 2007/09/03 21:18:09
Location: NYC


Return to CentOS 5 - Software Support

Who is online

Users browsing this forum: No registered users and 6 guests