openldap
OpenLDAP 2.6.x server image with TLS, multi-master replication, and Docker Swarm/Kubernetes support
10K+
OpenLDAP 2.6.x Docker image based on Debian Trixie.
| Architecture | Tag |
|---|---|
| x86-64 | amd64 |
| ARM64 | arm64 |
docker run -p 389:389 -p 636:636 --detach startcodex/openldap:2.0.0
Test it:
docker exec <container_id> ldapsearch -x -H ldap://localhost -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w admin
docker run \
--env LDAP_ORGANISATION="My Company" \
--env LDAP_DOMAIN="my-company.com" \
--env LDAP_ADMIN_PASSWORD="secretpassword" \
-p 389:389 -p 636:636 \
--detach startcodex/openldap:2.0.0
docker run \
--volume /data/ldap/database:/var/lib/ldap \
--volume /data/ldap/config:/etc/ldap/slapd.d \
-p 389:389 -p 636:636 \
--detach startcodex/openldap:2.0.0
| Variable | Default | Description |
|---|---|---|
LDAP_ORGANISATION | Example Inc. | Organisation name |
LDAP_DOMAIN | example.org | LDAP domain |
LDAP_ADMIN_PASSWORD | admin | Admin password |
LDAP_CONFIG_PASSWORD | config | Config password |
LDAP_BASE_DN | (auto) | Base DN, auto-generated from domain |
| Variable | Default | Description |
|---|---|---|
LDAP_TLS | true | Enable TLS |
LDAP_TLS_ENFORCE | false | Enforce TLS connections |
LDAP_TLS_CRT_FILENAME | ldap.crt | TLS certificate filename |
LDAP_TLS_KEY_FILENAME | ldap.key | TLS key filename |
LDAP_TLS_CA_CRT_FILENAME | ca.crt | CA certificate filename |
| Variable | Default | Description |
|---|---|---|
LDAP_PORT | 389 | LDAP port |
LDAPS_PORT | 636 | LDAPS (TLS) port |
| Variable | Default | Description |
|---|---|---|
LDAP_REPLICATION | false | Enable multi-master replication |
LDAP_REPLICATION_HOSTS | (see docs) | List of replication hosts |
| Variable | Default | Description |
|---|---|---|
FQDN | (empty) | Override hostname for Docker Swarm/K8s |
LDAP_READONLY_USER | false | Add read-only user |
LDAP_RFC2307BIS_SCHEMA | false | Use RFC2307bis schema |
| Tag | Description |
|---|---|
latest | Latest stable release |
2.0.0, 2.0, 2 | OpenLDAP 2.6.10 on Debian Trixie |
This image is a fork of osixia/openldap with major updates:
mdb backend supported (hdb/bdb removed)olcMirrorMode renamed to olcMultiProviderSee migration guide for details.
Full documentation: GitHub Repository
MIT License - See LICENSE
Content type
Image
Digest
sha256:e15497b32…
Size
53 MB
Last updated
3 months ago
docker pull startcodex/openldap:2.1.0