In Gentoo build necessary backends of slapd are linked statically. Prior to 2.4.40 upstream's default backend was bdb. In 2.4.40 was announced switch to mdb. But in 2.4.44 Gentoo still builds legacy list: $ /usr/lib64/openldap/slapd -VVV @(#) $OpenLDAP: slapd 2.4.44 (Feb 1 2017 11:11:30) $ @ftn:/var/tmp/portage/net-nds/openldap-2.4.44/work/openldap-2.4.44-abi_x86_64.amd64/servers/slapd Included static overlays: syncprov Included static backends: config ldif bdb hdb Starting with 2.4.40 it should be right to build: … Included static backends: config ldif mdb P.S. Also *must* be noted, that up to 2.4.44 upstream provides incomplete default OLC-config. slapd.ldif misses mandatory for mdb-backend attribute olcDbMaxSize.
Adding reference to bug #571948 (rebuild openldap after dev-db/lmdb update).
Bump? Spent a couple days trying to follow the LDAP Howto on the Gentoo site (https://wiki.gentoo.org/wiki/Centralized_authentication_using_OpenLDAP) before realizing that it wasn't possible as written because the openldap package doesn't build mdb statically. Also, as per https://www.openldap.org/doc/admin24/backends.html: "The hdb backend has superseded the bdb backend, and both will soon be deprecated in favor of the new mdb backend."
(In reply to chesguy from comment #2) > Spent a couple days trying to follow the LDAP Howto on the Gentoo site > (https://wiki.gentoo.org/wiki/Centralized_authentication_using_OpenLDAP) > before realizing that it wasn't possible as written because the openldap > package doesn't build mdb statically. Command to see slapd binary configuration is displayed in replication setup section. Probably it should be moved to «Common notes» or duplicated there with notification about necessity to load modules of dynamically-built back-ends and/or modules.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d12a02243969b7c715e9b639345ec8aacd925a28 commit d12a02243969b7c715e9b639345ec8aacd925a28 Author: Dennis Lamm <expeditioneer@gentoo.org> AuthorDate: 2022-02-05 23:24:54 +0000 Commit: Robin H. Johnson <robbat2@gentoo.org> CommitDate: 2022-03-19 18:07:51 +0000 net-nds/openldap 2.6.1 version bump Closes: https://bugs.gentoo.org/799092 Bug: https://bugs.gentoo.org/624178 Bug: https://bugs.gentoo.org/815844 Bug: https://bugs.gentoo.org/609486 Signed-off-by: Dennis Lamm <expeditioneer@gentoo.org> (cherry picked from commit c2e92fe1e144e8563f753a76d9d0cba923bb8878) Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> net-nds/openldap/Manifest | 1 + net-nds/openldap/files/openldap-2.6.1-cloak.patch | 25 + .../files/openldap-2.6.1-fix-missing-mapping.patch | 21 + net-nds/openldap/files/openldap-2.6.1-flags.patch | 416 +++++++++++ .../openldap/files/openldap-2.6.1-system-mdb.patch | 148 ++++ net-nds/openldap/files/slapd-2.6.1.service | 12 + net-nds/openldap/files/slapd-confd-2.6.1 | 26 + net-nds/openldap/metadata.xml | 4 + net-nds/openldap/openldap-2.6.1.ebuild | 796 +++++++++++++++++++++ 9 files changed, 1449 insertions(+)