Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83334 - OpenLDAP bdb database backend broken
Summary: OpenLDAP bdb database backend broken
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-25 14:00 UTC by Ron Wills
Modified: 2005-04-13 17:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ron Wills 2005-02-25 14:00:21 UTC
When openldap 2.1.13-r2 is configure to use berkdb backend (database bdb or ldbm defaults to berkdb) the following occurs:

1. database quickly corrupts when queried
2. slapd does not fork
3. slapindex segfaults

It's using db-4.1.25_p1-r4. I've tried rebuilding the ldap database from scratch again, rebuild db and openldap, tried different kernels,... :P


Reproducible: Always
Steps to Reproduce:
1. slapd.conf -> database bdb | database ldbm and USE="berkdb"
2. /etc/init.d/slapd start
3. start using the server and slapindex and things go down hill
   very quickly

Actual Results:  
The ldap database became corrupted with in moments


To work around this I switch the backend to use gdbm as follows:

USE="-berkdb gdbm" emerge openldap
in /etc/openldap/slapd.conf: database ldbm
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-02-25 17:37:08 UTC
Why are you using such an old openldap?

go and use 2.1.30* or 2.2.23*
Comment 2 Ron Wills 2005-02-26 10:55:00 UTC
Opps sorry, I meant version 2.1.30-r2. Just a typo, this has had my network down for a day and a half :P
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-02-26 18:10:35 UTC
ok, please post your emerge info output
and additionally, put 'test' in your FEATURES and emerge openldap again to see if it fails it's tests.
Comment 4 Ron Wills 2005-03-03 13:36:41 UTC
Sorry I haven't been able to run these tests for you. I'm in the middle of a project that requires my attn and can't afford to bring the network down for the moment. I hope to have the results for you over the weekend.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-04-13 17:20:35 UTC
please reopen when you have the information.