diff --git a/lib/authelia.sh b/lib/authelia.sh index 118a44a..ba8008f 100644 --- a/lib/authelia.sh +++ b/lib/authelia.sh @@ -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 <