Install OpenLDAP LTB for Debian / Ubuntu

Installation

Import GPG key

Important

The GPG key for debian has been updated on August 2025. Take care to use the new one by following the instructions below.

The public key can be downloaded here: GPG key.

To import this key:

# apt install curl gpg
# curl https://ltb-project.org/documentation/_static/ltb-project-debian-keyring.gpg | gpg --dearmor > /usr/share/keyrings/ltb-project-debian-keyring.gpg

Tip

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

# curl https://ltb-project.org/documentation/_static/ltb-project-debian-keyring.gpg | apt-key add -

Declare APT repository

Tip

You need to set up the repository for your version:

  • buster (debian 10)

  • bullseye (debian 11)

  • bookworm (debian 12)

  • trixie (debian 13)

  • jammy (ubuntu 22.04 LTS)

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

Warning: other Ubuntu systems may not be supported, due to possible incompatible dependency versions

Authorize downloading of packages in https repositories:

# apt install apt-transport-https

Configure the repository:

# vi /etc/apt/sources.list.d/ltb-project-openldap.sources

Tip

Available distributions are buster, bullseye, bookworm, trixie and jammy. Here is the configuration for trixie.

You can also replace openldap26 by openldap25 for OpenLDAP 2.5.X version.

Types: deb
URIs: https://ltb-project.org/debian/openldap26/trixie
Suites: trixie
Components: main
Signed-By: /usr/share/keyrings/ltb-project-debian-keyring.gpg
Architectures: amd64

Note

You can also use the old-style source.list format. For example, for OpenLDAP 2.6 and Debian Trixie, edit ltb-project-openldap.list and add:

deb [arch=amd64 signed-by=/usr/share/keyrings/ltb-project-debian-keyring.gpg] https://ltb-project.org/debian/openldap26/trixie trixie 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