you might just want to download, compile and install berkeleydb 2.7.7
from sleepycat.com, (available as compressed tar-archive in
their "updates" section..) install it in a non-standard path (e.g.
/usr/local/openldap/berkeley277) and then tell openldap's configure to
use _this_ package..
env CPPFLAGS="-I/usr/local/openldap/berkeley277/include" \
LDFLAGS="-L/usr/local/openldap/berkeley277/lib" \
./configure
doing this, you can continue using bdb3.X for other maybe allready
installed applications..
daniel