Berkeley DB is up to rev 4.0.14. ifdef's in ldbm.c make it unusable, perhaps unintentionally. Any known reason why db >= 4 shouldn't work in openldap?