[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: bdb problems on redhat 9

the data directory is defined in you slapd.conf !
for me it is in /var/lib/ldap/int, I manually created sub-dir int, but you can stay with /var/lib/ldap. ownership on the directory database must also be to the ldap user .

Redhat finally released an up to date rpm for openldap 2.1.22 :-)
However it's from rawhide, you just need to get the source and recompile on RH 9. If you prefer that one, I also compiled it, i can put RH 9 rpm binaries from the rawhide source rpm on my site if you wish ...

Heikki Paajanen wrote:
I'm having problems getting 2.1.22 working with bdb back end on redhat 9.
The data directory (/var/run/openldap-data) exists and is empty. I'm using RPM
from http://www.int-evry.fr/mci/user/procacci/SRPMS/9/.

Tried to search for similar problems from google and this list archives
but didn't found anything.

I appreciate any help I can get.

Here's what I get when start the slapd:

[root@wts57 old_ldap_conf]# slapd -d 1
@(#) $OpenLDAP: slapd 2.1.22 (Jul  1 2003 17:47:56) $
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
daemon: socket() failed errno=97 (Address family not supported by protocol)
daemon: initialized ldap:///
daemon_init: 2 listeners opened
slapd init: initiated server.
slap_sasl_init: initialized!
bdb_initialize: initialize BDB backend
bdb_initialize: Sleepycat Software: Berkeley DB 4.1.25: (December 19, 2002)

dnNormalize: <cn=Subschema>

=> ldap_bv2dn(cn=Subschema,0)
<= ldap_bv2dn(cn=Subschema,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=subschema,272)=0
<<< dnNormalize: <cn=subschema>
bdb_db_init: Initializing BDB database
slapd startup: initiated.
bdb_db_open: dbenv_open(/var/run/openldap-data)
bdb(o=wts): unable to initialize mutex: Function not implemented
bdb(o=wts): /var/run/openldap-data/__db.001: unable to initialize environment lock: Function not implemented
bdb_db_open: dbenv_open failed: Function not implemented (38)
backend_startup: bi_db_open(0) failed! (38)
slapd shutdown: initiated
====> bdb_cache_release_all
slapd shutdown: freeing system resources.
bdb(o=wts): txn_checkpoint interface requires an environment configured for the transaction subsystem
bdb_db_destroy: txn_checkpoint failed: Invalid argument (22)
====> bdb_cache_release_all
slapd stopped.
connections_destroy: nothing to destroy.

Regards, Hessu

-- Jehan Procaccia | Ingenieur Systemes & Reseaux Institut National des Telecommunications| Tel : +33 (0) 160764436 MCI, Moyens Communs Informatiques | Mail: Jehan.Procaccia@int-evry.fr 9 rue Charles Fourier 91011 Evry France | Fax : +33 (0) 160764321