You are not logged in.

#1 2009-02-27 23:23:24

wilson
Member
Registered: 2008-02-26
Posts: 13

openldap, db4.5, ldif's and slapadd

I've been running a local openldap server with a hdb backend, and have been having some problems.  Every 20 mintues or so, I will get the following in my logs:

slapd[19360]: segfault at 0 ip 00007f7575bf5094 sp 00007f7548df26e8 error 6 in libdb-4.5.so[7f7575b47000+10f000]

and I have to restart slapd to be able to bind to it.

so, I decided to try using the newer db (4.7) that is already installed (instead of the db4.5 package that is needed or openldap).

I remove the line

export CPPFLAGS="-I/usr/include/db4.5 $CPPFLAGS"

and remove db4.5 from the dependencies of the openldap PKGBUILD, then build openldap (latest from abs)

to transition, I do:

slapcat -l ~/ldap.ldif
/etc/rc.d/slapd stop
rm -rf /var/lib/openldap/data/*
cp ~/DB_CONFIG /var/lib/openldap/data
slapadd -l ~/ldap.ldif

I then get the following error:

bdb_back_initialize: BDB library version mismatch: expected Berkeley DB 4.7.25: (May 15, 2008), got Berkeley DB 4.5.20: (September 20, 2006)
backend_init: initialized for type "bdb"
slapadd: slap_init failed!


From everything I can find, this is not supposed to happen when I use an ldif - only when doing straight bdb conversions (for which one would use db_upgrade).  Is there something I am missing, like some openldap bdb files not in /var/lib/openldap/data that I need to remove, or is this a bug?

Thanks

Last edited by wilson (2009-02-27 23:23:56)

Offline

Board footer

Powered by FluxBB