Dockerized OpenLDAP daemon.
The container exposes TCP ports 389 (LDAP) and 636 (LDAPS) as well as the
ldapi Unix socket in the /run/slapd volume.
Name | Description | Default value
--- | --- | ---
LDAP_URLS | List of URLs to serve. | ldap:/// ldapi:/// ldaps:///
LDAP_ROOTPASS | Root password.
LDAP_DOMAIN | Domain.
LDAP_ORGANIZATION | Organization.
SLAPD_DEBUG_LEVEL | The slapd debug/ log level. | stats,stats2,none
SSL_CERT_FILE | Location of the SSL certificate file.
SSL_KEY_FILE | Location of the SSL key file.
SSL_CA_FILE | Location of the SSL certificate authority file.
If the relevant environment variables aren't changed from their default values, on startup the container will generate a key and self-signed certificate with the FQDN of the container. If the location of the SSL key and certificate are provided, those are used instead.
The configuration (cn=config) and data LDAP directories reside in the
config and data diretories respectively in the /var/lib/ldap volume.
The LDAP directories are generated only if they're missing. Changes to
environment variables afterwards won't change the configuration, since that is
persisted to a volume. There's also the /var/backups/ldap volume where the
backup script saves snapshots of the LDAP directories (config directory
included).
This software is licensed under the MIT license (see LICENSE.txt).
Nimrod Adar, contact me or visit my
website. Patches are welcome via
git send-email. The repository
is located at: https://git.shore.co.il/explore/.
Content type
Image
Digest
Size
42.4 MB
Last updated
over 5 years ago
docker pull adarnimrod/slapd