Install OpenLDAP LTB for Red-Hat / CentOS

Installation

Enable the EPEL repository

The LTB packages depend on packages that are only available in the EPEL repository (“Extra Packages for Enterprise Linux”). You must enable the EPEL repository before installing LTB packages.

The EPEL Quickstart provides instructions for installing EPEL on RHEL and derivatives.

Declare YUM repository

Tip

Yum repositories are available for this release versions ($releasever):

  • 7/7Server

  • 8/8Server

  • 9/9Server (for OpenLDAP >= 2.5 only)

Configure the yum repository:

# vi /etc/yum.repos.d/ltb-project.repo
  • For OpenLDAP 2.5:

[ltb-project]
name=LTB project packages
baseurl=https://ltb-project.org/rpm/openldap25/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-LTB-project
  • For OpenLDAP 2.6:

[ltb-project]
name=LTB project packages
baseurl=https://ltb-project.org/rpm/openldap26/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-LTB-project

Import GPG key

For EL7 and EL8

The public key can be downloaded here: GPG key.

To import this key:

# rpm --import https://ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-project

For EL9

The public key can be downloaded here: GPG security key.

To import this key:

# rpm --import https://ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-PROJECT-SECURITY

Install packages

You are now ready to install:

# yum install openldap-ltb openldap-ltb-contrib-overlays openldap-ltb-mdb-utils

See OpenLDAP packages to know available packages.

Manual download

You can download the RPMs here: Download.

The public key can be downloaded here: GPG key.

To import this key:

# rpm --import https://ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-project

Just run this command to install them (with dependency management):

# yum localinstall openldap-ltb*

Rebuild RPMs

You can download the source rpm to build your own OpenLDAP RPMs.

Install source RPMs:

# rpm -Uvh openldap-ltb-VERSION.src.rpm

Do your job and rebuild RPMs:

# cd /usr/src/rpm
# rpmbuild -ba SPECS/openldap-ltb.spec