-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (21 loc) · 943 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM osixia/openldap
ENV LDAP_ORGANISATION='Planet Express, Inc.'
ENV LDAP_DOMAIN=planetexpress.com
ENV LDAP_BASE_DN=dc=planetexpress,dc=com
ENV LDAP_ADMIN_PASSWORD=GoodNewsEveryone
ENV LDAP_CONFIG_PASSWORD=config
# Tls
ENV LDAP_TLS=true
ENV LDAP_TLS_CRT_FILENAME=cert.crt
ENV LDAP_TLS_KEY_FILENAME=cert.key
ENV LDAP_TLS_DH_PARAM_FILENAME=dhparam.pem
ENV LDAP_TLS_CA_CRT_FILENAME=ca.crt
ENV LDAP_TLS_ENFORCE=false
ENV LDAP_TLS_CIPHER_SUITE=SECURE256:+SECURE128:-VERS-TLS-ALL:+VERS-TLS1.2:-RSA:-DHE-DSS:-CAMELLIA-128-CBC:-CAMELLIA-256-CBC
ENV LDAP_TLS_VERIFY_CLIENT=never
# Admin user
ENV LDAP_ADMIN_DN='cn=admin,dc=planetexpress,dc=com'
ADD bootstrap /container/service/slapd/assets/config/bootstrap
ADD certs /container/service/slapd/assets/certs
HEALTHCHECK --interval=10s --timeout=5s --start-period=5s --retries=5 \
CMD ldapsearch -H ldap://127.0.0.1:389 -D ${LDAP_ADMIN_DN} -w ${LDAP_ADMIN_PASSWORD} -b ${LDAP_BASE_DN} || exit 1