From Fedora Project Wiki



OpenLDAP upgrade from version 2.4.59 to the latest upstream version 2.6.1 in Fedora.


Current status

Detailed Description

Upgrading OpenLDAP from version 2.4.59 to version 2.6.1 according to the new upstream release. Years of development differ between these two releases, so problems are expected.

This change might cause failures during builds of multiple packages. These two versions have slight ABI incompatibility even though it's easily fixable. This step must be properly discussed with maintainers of dependent packages, which should forward this change proposal to their upstream projects.


Benefit to Fedora

Brings a stable and up-to-date version of OpenLDAP according to upsteam release. OpenLDAP 2.4 will be out of support as soon as OpenLDAP 2.6 is released which is planned for this year. Fedora will be prepared for such a step.


  • Proposal owners:
  • Other developers: Check if their packages can be build with openldap-2.6.1, if not, they are required to make the appropriate changes to their packages.
  • Release engineering: #10349
  • Policies and guidelines: N/A (not needed for this Change)
  • Trademark approval: N/A (not needed for this Change)
  • Alignment with Objectives:

Upgrade/compatibility impact

Problems during build can appear in multiple packages what can lead to build failure, as multiple packages require OpenLDAP as their upstream dependency. These problems have to be resolved before adding openldap-2.6.1 into Fedora. It seems aprox. 10% of dependent packages are having problems during build, which could be caused by a problem with same pattern.

Full ABI Compatibility Report:

It's worth mentioning that -h and -p options were removed from client tools. Universal -H option should be used instead.

How To Test

Rebuilding your packages with openldap-2.6.1 dependency in copr (

The best way to rebuild new version of package against openldap-2.6.1 is to create a pull-request against your dist-git repository (against rawhide branch). After that, you package will be automatically rebuild in the mentioned copr. Please find your package in the "Builds" tab and search in the various sub-tabs for your build.

If possible, please prepare a pull-request, so you can easily merge it, when the change will be executed.

For local testing and building, please download mock-config from the given copr repository and use it with your mock:

copr mock-config spichugi/openldap-2.6 fedora-rawhide-x86_64 > spichugi-openldap-2.6_fedora-rawhide-x86_64.cfg

mv spichugi-openldap-2.6_fedora-rawhide-x86_64.cfg /etc/mock

Now we may run: mock -r spichugi-openldap-2.6_fedora-rawhide-x86_64 --rebuild <package-1.0-1.src.rpm>

User Experience

Users will be able to use the newer version (2.6) of OpenLDAP, and building packages with openldap-2.4 won't be available, as it won't be present on the specific fedora version. This can affect 3rd partly packages, which are not part of Fedora.

To remediate the impact of the change the server won't start after the update (because of the modified systemd file). The instructions will be provided in the file. The instructions will contain detailed information on how to do an offline backup and all of the necessary precautions.

The user will have to follow the Upstream upgrading guide and only then concisely continue the upgrade:


Tens of packages have build dependency on OpenLDAP, so they should be properly notified and the upgradeshould be carefully tested. List of dependent packages with their ability to be built with openldap-2.6 can be found in the given copr project (

Contingency Plan

  • Contingency mechanism: moving this change to Fedora 37, if not successfully finished until Fedora 36 branching from Rawhide
  • Contingency deadline: Fedora 36 branching from Rawhide (2022-02-08)
  • Blocks release? No


Latest OpenLDAP documentation:

Release Notes