Red Hat Bugzilla – Bug 10574
Last modified: 2008-05-01 11:37:55 EDT
OpenLdap is compiled with berkeley db2 version lower
than 2.7.5. This cause database corruption
OpenLDAP is built using the version of DB 2 bundled with glibc. What specific
problems are you having?
Problem is that sooner or later (3,4 days
or even weeks) after openldap restart database is corrupted.
Looks like problem is in database.Openldap faq says
that it need db2 >= 2.7.5. Now I compile openldap 1.2.9-4.srpm
with berkeley db2 2.7.7 and run it about week. After restart all
is OK. But this is not complete test :(
Version 1.2.9 from Raw Hide (ftp://ftp.redhat.com/pub/rawhide/i386/RedHat/RPMS/)
or 6.2 may already solve this problem. I'm changing the component to glibc,
which is where the bundled copy of Berkeley DB is in, so that's where a fix
would need to be made.
To avoid this problem, we're switching to gdbm for future builds of OpenLDAP.
Migration will be messy, though, as it requires a manual ldbmcat before the
upgrade and an ldif2ldbm afterwards.