Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-11-2003, 07:33 PM   #1
Registered: Apr 2002
Location: St. Paul, Minnesota
Distribution: UbuntuStudio, Ubuntu
Posts: 357

Rep: Reputation: 31
OpenLDAP and BDB (long)


I have recently Downloaded, Configured, Compiled and installed these packages:

Sleepycat Berkeley - db-4.1.25
openssl - 0.9.7b
openldap - 2.1.21 (uses the above packages)

All packages built successfully with zero errors.

include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
pidfile /var/
argsfile /var/slapd.args
access to dn.base="" by * read
access to * by self write by users read by anonymous auth
database bdb
suffix "dc=cvweb"
rootdn "cn=manager,dc=cvweb"
rootpw {SSHA}HV...
directory /var/openldap-data
index objectClass eq

Every how-to and readme I read says that I don't need to create the database first - just run it. But it doesn't run - here is the info from my running it /usr/libexec/slapd -d 4

-+-+-+--d 4 output-+-+-+-
daemon_init: <null>
bdb_initialize: Sleepycat Software: Berkeley DB 4.1.25: (December 19, 2002)
bdb_db_init: Initializing BDB database
bdb_db_open: dc=corvu
bdb(dc=corvu): unable to join the environment
bdb_db_open: dbenv_open failed: Resource temporarily unavailable (11)
backend_startup: bi_db_open(0) failed! (11)
bdb(dc=corvu): txn_checkpoint interface requires an environment configured for the transaction subsystem
bdb_db_destroy: txn_checkpoint failed: Invalid argument (22)
slapd stopped.
connections_destroy: nothing to destroy.

And finally, /var/openldap-data
drwx------ 2 root root 4096 Jun 10 21:19 .
drwxr-xr-x 24 root root 4096 Apr 10 09:37 ..
-rw------- 1 root root 0 Jun 10 21:19 __db.001

The above (__db.001) is created automatically by running OpenLDAP.

Could somebody tell me what stupid thing I'm missing!?

Thank you!
Old 07-24-2003, 09:28 AM   #2
Registered: Apr 2002
Location: St. Paul, Minnesota
Distribution: UbuntuStudio, Ubuntu
Posts: 357

Original Poster
Rep: Reputation: 31
Follow Up


After posting this qustion - I joined the OpenLDAP mailing list. This seemed the best place to get an answer to the issue. I have since gotten it working, but I'm not clear about "how", but I'll give my "impression" (along with the impression of the OpenLDAP list community).

First, I want to make it clear that the OpenLDAP package passed the "% make test" process. That is to say that as user, 'gavollink' the test package was able to create an LDAP database using BDB.

Because of this, I started chasing the issue as if it were a permission problem (which seemed logical enough - forgetting that I'm running OpenLDAP as "root"). I asked to the OpenLDAP list and the most usefull response that I got was that my environment was hosed. (I have three active Linux Servers all running RedHat 7.2 or 7.3). So I instead asked another question, how do most users run OpenLDAP. Well the near unanimous response was anything BUT root.

So, I set up OpenLDAP to Launch as a user I created called "ldap". Suddenly it worked - it was able to create a database. Here's where things get foggy again. Once I ran it as the "ldap" user from these files, and I had set the config files, and the database directory to be writable by the "ldap" user - THEN I was also able to get OpenLDAP to run as "root". Even after deleting the database, and starting "fresh" it still worked. I don't have time to investigate further, but maybe this will help someone else.

G. A. Vollink


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
printf unsigned long long int? blackzone Programming 9 03-04-2008 01:41 PM
AD, OpenLDAP bentman78 Linux - Networking 1 03-15-2005 01:34 PM
openldap quarry_06 Linux - Networking 7 11-21-2004 02:11 PM
XsIM on Slackware 9.1 BDB? mifrai Linux - Software 1 01-26-2004 12:32 AM
Mysql-BDB Data Base driver rwelch Linux - General 1 03-19-2003 07:46 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration