This repository has been archived on 2026-11-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
docker-openldap/Dockerfile
T

27 lines
700 B
Docker

from ubuntu:12.04
# Configure apt
run echo 'deb http://us.archive.ubuntu.com/ubuntu/ precise universe' >> /etc/apt/sources.list
run apt-get -y update
# Don't start slapd on install
run echo "#!/bin/sh\nexit 101" >/usr/sbin/policy-rc.d
run chmod +x /usr/sbin/policy-rc.d
# Install slapd
run LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y slapd
# Default configuration: can be overridden at the docker command line
env LDAP_ROOTPASS toor
env LDAP_ORGANISATION Acme Widgets Inc.
env LDAP_DOMAIN example.com
expose 389
add ./slapd-start /usr/bin/slapd-start
cmd ["/usr/bin/slapd-start"]
# To store the data outside the container, mount /var/lib/ldap as a data volume
# vim:ts=8:noet: