Docker容器中运行的域控

Bertrand Gouny bc0dd766d2 merge 10 years ago
service bc0dd766d2 merge 10 years ago
test 78e3ae88e2 pb mmc agent 11 years ago
.gitignore 16c54d294e Add minimal .gitignore 11 years ago
CHANGELOG.md f1a9dd1b78 rename Changelog to CHANGELOG 11 years ago
Dockerfile 01f8d8ddcf baseimage version 11 years ago
LICENSE 8e9be9c75b Rename LICENSE.txt to LICENSE 11 years ago
Makefile bc0dd766d2 merge 10 years ago
README.md 5125257293 Update README.md 11 years ago
test-repository.sh 6cfd595bd5 nouveaux tests 11 years ago
test.sh 6cfd595bd5 nouveaux tests 11 years ago

README.md

docker-openldap

Fork of Nick Stenning docker-slapd : https://github.com/nickstenning/docker-slapd

Add support of tls.

How to use tls

Add -v some/host/dir:/etc/ldap/ssl and --dns=127.0.0.1 to the run command.

some/host/dir must contain a least 3 files :

  • ca.crt certificate authority certificate
  • ldap.crt ldap server certificate
  • ldap.key ldap server certificate private key

and optionaly dhparam.pem this file is genereted automaticaly if not present.

--dns=127.0.0.1 allow to use the certificate cn correctly.

Example

docker run --dns=127.0.0.1 \
           -v /data/ldap/db:/var/lib/ldap \
           -v /data/ldap/config:/etc/ldap/slapd.d \
           -v /data/ldap/ssl/:/etc/ldap/ssl \
           -v /data/ldap/log/:/var/log \
           -e LDAP_DOMAIN=example.com \
           -e LDAP_ORGANISATION="Example Corp." \
           -e LDAP_ROOTPASS=toor \
           -p 389:389 -d osixia/openldap