startcodex/openldap

By startcodex

Updated 3 months ago

OpenLDAP 2.6.x server image with TLS, multi-master replication, and Docker Swarm/Kubernetes support

Image
Networking
Security
Databases & storage
0

10K+

startcodex/openldap repository overview

OpenLDAP 2.6.x Docker image based on Debian Trixie.

Docker Pulls Docker Stars

Supported Architectures

ArchitectureTag
x86-64amd64
ARM64arm64

Quick Start

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

Customization

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

Data Persistence

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

Environment Variables

Basic Configuration
VariableDefaultDescription
LDAP_ORGANISATIONExample Inc.Organisation name
LDAP_DOMAINexample.orgLDAP domain
LDAP_ADMIN_PASSWORDadminAdmin password
LDAP_CONFIG_PASSWORDconfigConfig password
LDAP_BASE_DN(auto)Base DN, auto-generated from domain
TLS Configuration
VariableDefaultDescription
LDAP_TLStrueEnable TLS
LDAP_TLS_ENFORCEfalseEnforce TLS connections
LDAP_TLS_CRT_FILENAMEldap.crtTLS certificate filename
LDAP_TLS_KEY_FILENAMEldap.keyTLS key filename
LDAP_TLS_CA_CRT_FILENAMEca.crtCA certificate filename
Port Configuration
VariableDefaultDescription
LDAP_PORT389LDAP port
LDAPS_PORT636LDAPS (TLS) port
Replication
VariableDefaultDescription
LDAP_REPLICATIONfalseEnable multi-master replication
LDAP_REPLICATION_HOSTS(see docs)List of replication hosts
Other
VariableDefaultDescription
FQDN(empty)Override hostname for Docker Swarm/K8s
LDAP_READONLY_USERfalseAdd read-only user
LDAP_RFC2307BIS_SCHEMAfalseUse RFC2307bis schema

Tags

TagDescription
latestLatest stable release
2.0.0, 2.0, 2OpenLDAP 2.6.10 on Debian Trixie

Upgrading from osixia/openldap

This image is a fork of osixia/openldap with major updates:

  • OpenLDAP 2.4 → 2.6: Only mdb backend supported (hdb/bdb removed)
  • Base image: Debian Trixie (testing)
  • Breaking changes: olcMirrorMode renamed to olcMultiProvider

See migration guide for details.

Documentation

Full documentation: GitHub Repository

License

MIT License - See LICENSE

Tag summary

Content type

Image

Digest

sha256:e15497b32

Size

53 MB

Last updated

3 months ago

docker pull startcodex/openldap:2.1.0