Install OpenLDAP LTB for Red-Hat / CentOS

Installation

Declare YUM repository

Tip

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

  • 7/7Server
  • 8/8Server

Configure the yum repository:

# vi /etc/yum.repos.d/ltb-project.repo
  • For OpenLDAP 2.4:
[ltb-project]
name=LTB project packages
baseurl=https://ltb-project.org/rpm/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-LTB-project
  • 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

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

Then update:

# yum update

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