- make ldap example use share for certs

This commit is contained in:
Dennis Sieben
2023-02-27 18:57:02 +01:00
committed by Ralf Haferkamp
parent 145577ebbd
commit 3808603a07
2 changed files with 6 additions and 6 deletions
@@ -1,9 +1,9 @@
#!/bin/bash
printenv
if [ ! -f /opt/bitnami/openldap/certs/openldap.key ]
if [ ! -f /opt/bitnami/openldap/share/openldap.key ]
then
openssl req -x509 -newkey rsa:4096 -keyout /opt/bitnami/openldap/certs/openldap.key -out /opt/bitnami/openldap/certs/openldap.crt -sha256 -days 365 -batch -nodes
openssl req -x509 -newkey rsa:4096 -keyout /opt/bitnami/openldap/share/openldap.key -out /opt/bitnami/openldap/share/openldap.crt -sha256 -days 365 -batch -nodes
fi
# run original docker-entrypoint
/opt/bitnami/scripts/openldap/entrypoint.sh "$@"
@@ -112,9 +112,9 @@ services:
BITNAMI_DEBUG: true
LDAP_TLS_VERIFY_CLIENT: never
LDAP_ENABLE_TLS: "yes"
LDAP_TLS_CA_FILE: /opt/bitnami/openldap/certs/openldap.crt
LDAP_TLS_CERT_FILE: /opt/bitnami/openldap/certs/openldap.crt
LDAP_TLS_KEY_FILE: /opt/bitnami/openldap/certs/openldap.key
LDAP_TLS_CA_FILE: /opt/bitnami/openldap/share/openldap.crt
LDAP_TLS_CERT_FILE: /opt/bitnami/openldap/share/openldap.crt
LDAP_TLS_KEY_FILE: /opt/bitnami/openldap/share/openldap.key
LDAP_ROOT: "dc=owncloud,dc=com"
LDAP_ADMIN_PASSWORD: ${LDAP_ADMIN_PASSWORD:-admin}
ports:
@@ -124,7 +124,7 @@ services:
- ./config/ldap/ldif:/ldifs
- ./config/ldap/schemas:/schemas
- ./config/ldap/docker-entrypoint-override.sh:/opt/bitnami/scripts/openldap/docker-entrypoint-override.sh
- ldap-certs:/opt/bitnami/openldap/certs
- ldap-certs:/opt/bitnami/openldap/share
logging:
driver: ${LOG_DRIVER:-local}
restart: always