Skip to content
Snippets Groups Projects
Commit 449c2df2 authored by Xueshan Feng's avatar Xueshan Feng
Browse files

Add code to generate cert hash files.

parent 8230c472
No related branches found
No related tags found
No related merge requests found
......@@ -269,6 +269,16 @@ case "${ACTION}" in
;;
ldap)
# Generate cert hash files. Cert secret is mounted at /etc/ssl/ssl-certs
until [ -f /etc/ssl/certs/server.pem ]
do
if [ -f /etc/ssl/ssl-certs/server.pem ];
then
cp /etc/ssl/ssl-certs/* /etc/ssl/certs
c_rehash /etc/ssl/certs
fi
sleep 1
done
# Default slapd url, we should open ldaps as well for ldap+TLS
endpoints="ldap:/// ldaps:///"
if [[ "$ENABLE_SIMPLE" = "yes" ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment