Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 609486 - >=net-nds/openldap-2.4.40 build upstream default backend (mdb) statically
Summary: >=net-nds/openldap-2.4.40 build upstream default backend (mdb) statically
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: LDAP Herd
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-16 06:49 UTC by Sergey S. Starikoff
Modified: 2018-09-26 14:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey S. Starikoff 2017-02-16 06:49:26 UTC
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.
Comment 1 Sergey S. Starikoff 2017-02-16 06:54:40 UTC
Adding reference to bug #571948 (rebuild openldap after dev-db/lmdb update).
Comment 2 chesguy 2018-09-25 23:39:42 UTC
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."
Comment 3 Sergey S. Starikoff 2018-09-26 14:56:29 UTC
(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.