A container image that runs OpenLDAP with built-in setup for TLS, replication, backups, and directory tooling. Suited to persistent mounts for config, data, and backup volumes.
Overview
Container OpenLDAP packages the OpenLDAP server as a Docker image with automated bootstrap when config and data directories are empty. It exposes LDAP and LDAPS listeners and can generate admin passwords on first start when hashes are not supplied.
The image includes the openldap-ctl helper for full and partial backups, restore with safety checks, and optional scheduled backups via a companion cron container sharing volumes. TLS can be enabled at bootstrap with mountable certificate files, and syncrepl replication can be configured across multiple hosts on a Docker network.
Operators get the full OpenLDAP utility set inside the container, covering slapcat-style database tools and ldapsearch-style client commands, plus LDIF validation and password helpers. Environment variables control directories, bootstrap schemas, organizational data, and optional user and management accounts.
Deployments typically mount configuration, data, and backup paths for persistence and pass extra arguments through to the slapd process when needed.
Key features
- Automated bootstrap on empty volumes
- Backup and restore via openldap-ctl
- TLS and optional TLS-required rules
- Syncrepl replication setup
- Bundled OpenLDAP server and client utilities
- LDIF validation without import
- Extensive environment-based configuration
- Custom bootstrap LDIF and schemas
Use cases
- Run LDAP in Docker for development
- Persistent directory with mounted data
- Multi-node LDAP replication on Docker networks
- Scheduled backups with shared volumes
- Test and validate LDIF before import