Bug 2094159

Summary: Rebase OpenLDAP in RHEL 9.1
Product: Red Hat Enterprise Linux 9 Reporter: Simon Pichugin <spichugi>
Component: openldapAssignee: LDAP Maintainers <ldap-maint>
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: 9.0CC: afarley, bsmejkal, kdudka, ldap-maint, sgouvern
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 9.1Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2117752 (view as bug list) Environment:
Last Closed: 2022-11-15 11:11:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2117752    

Description Simon Pichugin 2022-06-07 02:47:23 UTC
Description of problem:
Currently, RHEL 9 has OpenLDAP 2.4 version.
Fedora 36 has OpenLDAP 2.6 version, which is already being tested by other packages for a few months.
Full ABI Compatibility Report between 2.4 and 2.6: https://spichugi.fedorapeople.org/ol_24_26_abi_check/compat_report.html

We need to rebase OpenLDAP to 2.6.2 version in RHEL 9.1.

Comment 2 Kamil Dudka 2022-06-29 15:32:29 UTC
This update unexpectedly broke build of RHEL-9 curl packages.  I just discovered it while I was working on a security update of curl:

make[2]: Leaving directory '/builddir/build/BUILD/curl-7.76.1/build-full/lib'
../../lib/openldap.c:83:17: error: conflicting types for 'ldap_connect'; have 'CURLcode(struct Curl_easy *, _Bool *)'
   83 | static CURLcode ldap_connect(struct Curl_easy *data, bool *done);
      |                 ^~~~~~~~~~~~
In file included from ../../lib/openldap.c:39:
/usr/include/ldap.h:1555:1: note: previous declaration of 'ldap_connect' with type 'int(LDAP *)' {aka 'int(struct ldap *)'}
 1555 | ldap_connect( LDAP *ld );
      | ^~~~~~~~~~~~


I am backporting the following upstream commit to fix it:

    https://github.com/curl/curl/commit/8bdde6b14ce3b5fd71c772a578fcbd4b6fa6df19

Comment 17 errata-xmlrpc 2022-11-15 11:11:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (openldap bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8269