(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) OpenLDAP Software FAQ : (Category) Installation : (Answer) Which version of BerkeleyDB should I use?
While the latest version of OpenLDAP Software generally works best with the latest version (with latest patches) of Berkeley DB available from Sleeycat Software (http://www.sleepycat.com/), that may not always be the case. So, read the distribution README.
Berkeley DB 4.2 (latest revision with patches) should be used with OpenLDAP 2.1 (and later). Berkeley DB 4.3 is unstable and should not be used. Versions 4.2, 4.4, and 4.5 are known to work with OpenLDAP 2.3. Versions 4.2, 4.4, 4.5, and 4.6 are known to work with OpenLDAP 2.4 and newer.
Kurt@OpenLDAP.org, hyc@openldap.org, quanah@openldap.org
See Also: (Xref) How do I force LDBM to use of BerkeleyDB?
In OpenLDAP 2.3, there is support for Degree 2 isolation when available in the underlying Berkeley DB library. Degree 2 isolation is necessary for removal of database transaction log files (e.g. db_archive and DB_LOG_AUTOREMOVE) while slapd is running. (In the absence of infinite storage capacity, periodic transaction log removal is necessary.)

If you are using BDB 4.2, OpenLDAP 2.2 and OpenLDAP 2.3.11 and older require an unofficial patch to BDB 4.2.52 to acheive Degree 2 isolation, available in the OpenLDAP CVS repository in the file BerkeleyDB42.patch. Later OpenLDAP 2.3 releases acheive Degree 2 isolation using cursors that make this patch unnecessary.

Also for OpenLDAP 2.2.27 or older, you need to apply the patch in revision of slapd/back-bdb/cache.c.

Later releases of Berkeley DB (4.3 and 4.4) do not require special patches from OpenLDAP to acheive Degree 2 isolation for the older OpenLDAP releases.

[Append to This Answer]
Previous: (Answer) What are the different backends? What are their differences?
Next: (Answer) Which version of BerkeleyDB do I have?
This document is: http://www.openldap.org/faq/index.cgi?file=44
[Search] [Appearance]
This is a Faq-O-Matic 2.721.test.
© Copyright 1998-2013, OpenLDAP Foundation, info@OpenLDAP.org