The OpenLDAP proxy server design aims to unify access to various LDAP data sources.
587
This document provides a comprehensive guide to configuring and maintaining an OpenLDAP server running in proxy (back-meta) mode, integrating with Active Directory, the local mdb database, and other LDAP sources. The idea is not new; it's described, among others, in the article Use LDAP Proxy to integrate multiple LDAP servers. This article and other sources served as the basis for implementing the basic functionality of the image.
OpenLDAP is an open-source, community-developed directory software package that implements the Lightweight Directory Access Protocol (LDAP). More information about this product can be found at https://www.openldap.org/.
The OpenLDAP proxy server design aims to unify access to various LDAP data sources (such as Active Directory, a local MDB, or other LDAP-S servers) for client applications. This allows for centralized authentication and authorization and presents a consistent view of the directory, regardless of its internal structure.

org.opencontainers.image.version=24.04ldapsearch, ldapadd, ldapmodify, ping, telnetGitHub project is available.
We run the openldap-proxy container with the OpenLDAP server as a Docker compose, defined in the docker-compose.yml file, or directly from the command line. Below are some example commands:
docker compose -f docker-compose.yml --env-file ldap-conf.env up -d
docker run --name openldap-proxy -p 389:389 -p 636:636 \
--env LDAP_ORG_DC="docker" \
--env LDAP_LOCAL_OLC_SUFFIX=dc=docker,dc=openldap \
--env LDAP_BASED_OLC_SUFFIX=dc=scisoftware,dc=pl \
--env LDAP_ROOT_CN=manager \
--env LDAP_LOCAL_ROOT_DN=cn=manager,dc=docker,dc=openldap \
--env LDAP_BASED_ROOT_DN=cn=manager,dc=scisoftware,dc=pl \
--env LDAP_ROOT_PASSWD_PLAINTEXT=secret \
--env SERVER_DEBUG=-1 \
--env LDAP_OLC_ACCESS="by anonymous auth by * none" \
--volume slapd_proxy_database:/var/lib/openldap \
--volume slapd_proxy_config:/etc/openldap/slapd.d \
--detach scisoftware/openldap-proxy:latest
docker run --name openldap-proxy -p 389:389 -p 636:636 ^
--env LDAP_ORG_DC="docker" ^
--env LDAP_LOCAL_OLC_SUFFIX=dc=docker,dc=openldap ^
--env LDAP_BASED_OLC_SUFFIX=dc=scisoftware,dc=pl ^
--env LDAP_ROOT_CN=manager ^
--env LDAP_LOCAL_ROOT_DN=cn=manager,dc=docker,dc=openldap ^
--env LDAP_BASED_ROOT_DN=cn=manager,dc=scisoftware,dc=pl ^
--env LDAP_ROOT_PASSWD_PLAINTEXT=secret ^
--env SERVER_DEBUG=-1 ^
--env LDAP_OLC_ACCESS="by anonymous auth by * none" ^
--volume slapd_proxy_database:/var/lib/openldap ^
--volume slapd_proxy_config:/etc/openldap/slapd.d ^
--detach scisoftware/openldap-proxy:latest
Content type
Image
Digest
sha256:c743e71b7…
Size
144.5 MB
Last updated
about 1 year ago
docker pull scisoftware/openldap-proxy