From 0bec301c985f016c73b40aa3d4b20e81350aae54 Mon Sep 17 00:00:00 2001 From: Thomas de Roo <2+thomas@noreply.localhost> Date: Mon, 1 Jun 2026 11:37:46 +0200 Subject: [PATCH] Update ApacheOverzicht.sh --- ApacheOverzicht.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ApacheOverzicht.sh b/ApacheOverzicht.sh index 2cc3397..b05e36f 100644 --- a/ApacheOverzicht.sh +++ b/ApacheOverzicht.sh @@ -5,6 +5,7 @@ DATE=$(date) declare -A HTTPS_DOMAINS declare -A CONFIG_FILES declare -A REVERSE_PROXIES +declare -A AUTH_TYPES # Loop door alle config-bestanden for conf in /etc/apache2/sites-enabled/*.conf; do @@ -12,6 +13,7 @@ for conf in /etc/apache2/sites-enabled/*.conf; do in_vhost=0 current_port="" current_domains=() + current_auth="-" while IFS= read -r line; do # VirtualHost start @@ -66,6 +68,19 @@ for conf in /etc/apache2/sites-enabled/*.conf; do line="${line#*${url}}" done fi + + # LDAP authenticatie + if [[ "$line" =~ AuthBasicProvider[[:space:]]+ldap ]]; then + current_auth="LDAP" + fi + + # Keycloak / OpenID Connect + if [[ "$line" =~ AuthType[[:space:]]+openid-connect ]] || + [[ "$line" =~ OIDCProviderMetadataURL ]] || + [[ "$line" =~ OIDCClientID ]]; then + current_auth="Keycloak" + fi + AUTH_TYPES["$domain"]="$current_auth" fi done < "$conf" done