Update ApacheOverzicht.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user