Install OpenLDAP LTB for Debian / Ubuntu

Installation

Import GPG key

The public key can be downloaded here: GPG key.

To import this key:

# apt install curl gpg
# curl https://ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-project | gpg --dearmor > /usr/share/keyrings/ltb-project-openldap-archive-keyring.gpg

Tip

On old systems, you can also use apt-key command:

# curl https://ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-project | apt-key add -

Declare APT repository

Tip

You need to set up the repository for your version:

  • stretch (debian 9)
  • buster (debian 10)
  • bullseye (debian 11)

For Ubuntu systems you can check which Debian release to choose in /etc/debian_version

Authorize downloading of packages in https repositories:

# apt install apt-transport-https

Configure the repository:

# vi /etc/apt/sources.list.d/ltb-project.list
  • For OpenLDAP 2.4:

Tip

Available distributions are stretch and buster. Here is the configuration for buster.

deb [arch=amd64 signed-by=/usr/share/keyrings/ltb-project-openldap-archive-keyring.gpg] https://ltb-project.org/debian/buster buster main
  • For OpenLDAP 2.5:

Tip

Available distributions are buster and bullseye. Here is the configuration for bullseye.

deb [arch=amd64 signed-by=/usr/share/keyrings/ltb-project-openldap-archive-keyring.gpg] https://ltb-project.org/debian/openldap25/bullseye bullseye main
  • For OpenLDAP 2.6:

Tip

Available distributions are buster and bullseye. Here is the configuration for bullseye.

deb [arch=amd64 signed-by=/usr/share/keyrings/ltb-project-openldap-archive-keyring.gpg] https://ltb-project.org/debian/openldap26/bullseye bullseye main

Then update:

# apt update

Install packages

You are now ready to install:

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

See OpenLDAP packages to know available packages.

Rebuild debian packages

You can rebuild the debian packages:

  • get the packaging sources
  • follow the README procedure

Everything is available here