Quick Start: LDAP
Quick Start: LDAP
Era note (2026): The
osixia/openldapandosixia/phpldapadminimages below are effectively unmaintained - frozen since ~Feb 2021 and shipping OpenLDAP 2.4 (EOL). The Traefik routing shown here works with any OpenLDAP image, but for new projects prefer a maintained one such asvegardit/openldaporbitnami/openldap(the free Bitnami image now lives inbitnamilegacyafter the Broadcom change).
If you want to use bitnamic/openldap,
please follow this Quick Start: LDAP by Bitnami.
Prerequisite
OR
Note: If using HTTP, remove the
tls: {}in dynamic configuration.
Preparation
compose.yml
1 | services: |
ldap.yml in dir dynamic-conf
You should touch
ldap.ymlin traefik dir dynamic-conf.For much more information, please reference the Prerequisite.
1 | http: |
DNS Configuration
Configure your DNS or modify your hosts file:
- For Unix-like systems: Edit
/etc/hosts - For Windows: Edit
C:\Windows\System32\drivers\etc\hosts
Add the following line:
1 | 127.0.0.1 ldap.x.internal |
Run
1 | docker compose up -d |
Access: https://ldap.x.internal