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: Mikle Kolyada
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2017-02-16 06:49 UTC by Sergey S. Starikoff
Modified: 2022-03-19 18:07 UTC (History)
3 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.
Comment 4 Larry the Git Cow gentoo-dev 2022-03-19 18:07:56 UTC
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(+)