The OpenLDAP App, v2.5.x. Support for x86_64 | arm64 | ppc64le.
10K+
OpenLDAP Software is an open source implementation of the Lightweight Directory Access Protocol.
The suite includes:
The container can be easily setup with the following environment variables:
LDAP_LOG_LEVEL: Set the log level for the OpenLDAP server (see The slapd Configuration File - loglevel for possible values). Default: 256
LDAP_FE_ADMIN_PWD: LDAP frontend (config) admin password. Default: Config@123
LDAP_BE_ADMIN_PWD: LDAP backend (mdb) admin password. Default: Admin@123
LDAP_TLS: Whether to enable TLS for traffic or not. Default: disable (enable)
LDAP_ANON_BIND: Allow anonymous bindings to the LDAP server. Default: enable (disable)
LDAP_BASE_DN: LDAP baseDN of the tree. Default: dc=example,dc=org
LDAP_EX_TREE: LDAP example tree for testing. Default: enable (disable)
LDAP_ACS_RULE: Only when LDAP_EX_TREE=enable is valid. LDAP access rules. Default: flexible (strict)
LDAP_PWD_POLICY: Only when LDAP_EX_TREE=enable is valid. LDAP password policy. Default: disable (enable)
Here are a few methods for running a container.
$ docker run -d \
--name ldap_app \
-v ldap_volume:/volume/openldap \
-p [expose_port]:1389 \
-p [expose_port]:1636 \
laineil/openldap:[tag]
$ docker run -d \
--name ldap_app \
-v ldap_volume:/volume/openldap \
-v [certs_path]:/opt/certs:ro \
-p [expose_port]:1389 \
-p [expose_port]:1636 \
-e LDAP_TLS=enable \
laineil/openldap:[tag]
# To use LDAP with TLS, ensure that LDAP_TLS is enabled.
# [certs_folder] must contains rootca.crt, server.crt, server.key (certificate name must match).
# Make sure the certificate files within [certs_folder] have permission 644.
$ docker run -d \
--name ldap_app \
-v ldap_volume:/volume/openldap \
-p 389:1389 \
-p 636:1636 \
-e LDAP_TLS=enable \
-e LDAP_ANON_BIND=disable \
-e LDAP_ACS_RULE=strict \
-e LDAP_PWD_POLICY=enable \
laineil/openldap:[tag]
$ ldapsearch -x -H ldap://[server_ip]:389 -D "cn=admin,dc=example,dc=org" -w Admin@123 -b "dc=example,dc=org"
$ ldapsearch -x -H ldaps://[server_ip]:636 -D "cn=admin,dc=example,dc=org" -w Admin@123 -b "dc=example,dc=org"
$ docker logs ldap_app
$ docker container stop ldap_app
$ docker container rm ldap_app
$ docker volume rm ldap_volume
The detailed information of the default example directory tree can be found here.
You can use the docker-compose.yaml file to combine laineil/openldap with laineil/phpldapadmin.
$ docker compose up -d
$ docker compose down
BSD 3-Clause License
Copyright (c) 2023, Laineil
All rights reserved.
Content type
Image
Digest
sha256:24e786339…
Size
40.6 MB
Last updated
3 months ago
docker pull laineil/openldap