Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 892009

Summary: net-nds/openldap-2.6.3 make AD discovery slow/hangs for adcli/sssd
Product: Gentoo Linux Reporter: Joakim Tjernlund <joakim.tjernlund>
Component: Current packagesAssignee: Gentoo LDAP project <ldap-bugs>
Status: RESOLVED FIXED    
Severity: major CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/SSSD/sssd/issues/6537
https://bugs.openldap.org/show_bug.cgi?id=9739
https://bugs.gentoo.org/show_bug.cgi?id=342439
Whiteboard:
Package list:
Runtime testing required: ---

Description Joakim Tjernlund 2023-01-25 13:35:56 UTC
Easiest seen with adcli:

adcli info domain.example.com

just hangs for over 2 minutes before any results

Upstream bug https://github.com/SSSD/sssd/issues/6537 suggests
-DLDAP_CONNECTIONLESS added to the build and doing so makes adcli work as before

Gentoo ebuild has this note:
if use experimental ; then
	# connectionless ldap per bug #342439
	# connectionless is a unsupported feature according to Howard Chu
	# see https://bugs.openldap.org/show_bug.cgi?id=9739
	append-cppflags -DLDAP_CONNECTIONLESS

Trying to enable USE=experimental does not work though, nor does append-cppflags

Adding append-cflags -DLDAP_CONNECTIONLESS unconditionally makes the
build use LDAP_CONNECTIONLESS though.
Comment 1 Joakim Tjernlund 2023-01-25 16:15:29 UTC
Also, the experimental USE flag is not reachable when USE=minimal

Since LDAP_CONNECTIONLESS was unconditional in openldap-2.4.x it may be a good idea to make so in 2.6.x too.
Comment 2 Joakim Tjernlund 2023-02-01 09:33:15 UTC
pinging as openldap-2.6.3 is a stable pkg
Comment 3 Larry the Git Cow gentoo-dev 2023-02-10 00:29:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8ba54d25287641b64419afb1a51f2182ae7490f

commit d8ba54d25287641b64419afb1a51f2182ae7490f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-10 00:24:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-10 00:29:02 +0000

    net-nds/openldap: add 2.6.4
    
    Bug: https://bugs.gentoo.org/867931
    Closes: https://bugs.gentoo.org/848894
    Closes: https://bugs.gentoo.org/892009
    Signed-off-by: Sam James <sam@gentoo.org>

 net-nds/openldap/Manifest                          |   1 +
 .../openldap/files/openldap-2.6.4-clang16.patch    | 234 ++++++
 net-nds/openldap/openldap-2.6.4.ebuild             | 834 +++++++++++++++++++++
 3 files changed, 1069 insertions(+)