Archived
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
288df9e3f5 | ||
|
|
cc9d731b8a | ||
|
|
fc8d97628f | ||
|
|
37c816a1ce | ||
|
|
d6a9b1cb3f |
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM osixia-baseimage
|
FROM osixia/baseimage
|
||||||
MAINTAINER Bertrand Gouny <bertrand.gouny@osixia.fr>
|
MAINTAINER Bertrand Gouny <bertrand.gouny@osixia.fr>
|
||||||
|
|
||||||
# From Nick Stenning's work
|
# From Nick Stenning's work
|
||||||
|
|||||||
@@ -2,3 +2,30 @@
|
|||||||
|
|
||||||
Fork of Nick Stenning docker-slapd :
|
Fork of Nick Stenning docker-slapd :
|
||||||
https://github.com/nickstenning/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 certificate cn correctly.
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
docker run --dns=127.0.0.1 \
|
||||||
|
-v /data/ldap/db:/var/lib/ldap \
|
||||||
|
-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
|
||||||
Reference in new issue
Block a user