Public | Automated Build

Last pushed: 13 days ago
Short Description
LDAP Container
Full Description

LDAP Docker Container

Status

Work in progress.

Configuration

  • DEBUG - set to true to enable verbose logging
  • LDAP_ORG - Organisation default ACME Corp
  • LDAP_DOMAIN - Domain default example.com
  • LDAP_USER - Bind User, default admin (not used)
  • LDAP_PASSWORD - Bind Password (required)

Usage Example

docker run -t -i --rm --name ldap -e LDAP_PASSWORD=foo -e DEBUG=true panubo/ldap

Further reading

See https://wiki.debian.org/LDAP/OpenLDAPSetup

Docker Pull Command
Owner
panubo
Source Repository

Comments (1)
neowinx
10 months ago

For those looking to make the data persistent, I used this in a shell console to generate persistent directories for the configuration and database:

docker run -d --name ldap -e LDAP_DOMAIN="mypersonaldomain.com" -e LDAP_PASSWORD=foo -p 389:389 -v $PWD/ldap/config:/config -v $PWD/ldap/data:/data panubo/ldap
sleep 10
docker exec -ti ldap bash -c 'mv /etc/ldap/* /config/'
docker exec -ti ldap bash -c 'mv /var/lib/ldap/* /data/'
docker stop ldap
docker rm ldap

Now, just run the container like this:

 docker run -ti --rm --name ldap -e LDAP_DOMAIN="mypersonaldomain.com" -e LDAP_PASSWORD=foo -p 389:389 -v $PWD/ldap/config:/etc/ldap -v $PWD/ldap/data:/var/lib/ldap panubo/ldap

Hope this helps somebody,

Regards