Add support for subdomain / ldap in authelia for Chris G

This commit is contained in:
root 2024-11-25 19:06:05 +00:00
parent 3454ce4a49
commit 2906595186

View File

@ -75,6 +75,11 @@ AUTHELIA_AUTHENTICATION_BACKEND_LDAP_PASSWORD_FILE=/secrets/AUTHENTICATION_BACKE
EOF
chmod 600 /federated/apps/authelia/.env
# Set the ldap configuration up for subdomain if we need to
if [ "${#LDAP_DOMAIN_ARRAY[@]}" -eq "3" ]; then
sed -i "s#dc=$LDAP_DOMAIN_FIRST,dc=$LDAP_DOMAIN_LAST#dc=$LDAP_DOMAIN_FIRST,dc=$LDAP_DOMAIN_MIDDLE,dc=$LDAP_DOMAIN_LAST#g" /federated/apps/authelia/.env
fi
cat > /federated/apps/authelia/data/config/configuration.yml <<EOF
---
theme: auto