OpenLDAP is a free, open-source implementation of the Lightweight Directory Access Protocol (LDAP) developed by the OpenLDAP Project.
This OpenLDAP distribution is provided by the Sourcemation packaging team. It is built from the latest available source code to ensure up-to-date features and security, all on a secure Debian 13 Slim base image. The container is configured on its first run using environment variables.
Run a temporary container for quick testing. A random admin password will be generated and printed to the container's logs.
docker run --rm -it -p 389:389 sourcemation/openldap:latest
# Check the logs for the random password
docker logs <container_id>
Run OpenLDAP in detached mode with persistent storage using named volumes. This is the recommended method for any real use.
docker run -d --name my-ldap-server \
-p 389:389 -p 636:636 \
--restart always \
-v ldap_data:/var/lib/ldap \
-v ldap_config:/etc/ldap/slapd.d \
-e LDAP_DOMAIN="mycompany.com" \
-e LDAP_ORGANISATION="my-company" \
-e LDAP_ADMIN_PASSWORD="my-secure-password" \
sourcemation/openldap:latest
This image is configured on the first run using environment variables passed to the docker run command.
The sourcemation/openldap image itself comes in debian-13 flavor.
The tag latest refers to the Debian-based flavor.
This image uses the following environment variables:
LDAP_CONF_DIR=/etc/ldap
LDAP_DATA_DIR=/var/lib/ldap
This image exposes the following ports:
Please note that the ports need to be either manually forwarded with the
-p option or let Docker choose some for you with the -P option.
Volumes:
It is highly recommended to use volumes to make your data and configuration persistent.
We'd love for you to contribute! You can request new features, report bugs, or submit a pull request with your contribution to this image on the Sourcemation GitHub repository.
Disclaimer: The sourcemation/openldap image is not affiliated with
the OpenLDAP Project. The respective companies and
organisations own the trademarks mentioned in the offering. The
sourcemation/openldap image is a separate project and is maintained by
Sourcemation.
A detailed risk analysis report of the image and its components can be found on the Sourcemation platform.
For more information, check out the OpenLDAP Software page.
The base license for the solution (OpenLDAP) is the OpenLDAP Public License 2.8. The licenses for each component shipped as part of this image can be found on the image's appropriate Sourcemation entry.
Content type
Image
Digest
sha256:cf47516dd…
Size
34.6 MB
Last updated
4 days ago
docker pull sourcemation/openldap