Skip to content
Snippets Groups Projects
Commit 1f74cab4 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Add support for multiple ad hosts for protokollsystem auth

parent 386148e9
No related branches found
No related tags found
No related merge requests found
...@@ -85,7 +85,15 @@ AUTH_MAX_DURATION = {{ protokolle_auth_max_duration }} ...@@ -85,7 +85,15 @@ AUTH_MAX_DURATION = {{ protokolle_auth_max_duration }}
AUTH_BACKENDS = [ AUTH_BACKENDS = [
{% for auth in protokolle_auth_backends %} {% for auth in protokolle_auth_backends %}
{{ auth.type }}( {{ auth.type }}(
{% if auth.host is defined %}
host="{{ auth.host }}", host="{{ auth.host }}",
{% elif auth.hosts is defined %}
host=(
{% for host in auth.hosts %}
"{{host}}",
{% endfor %}
)
{% endif %}
domain="{{ auth.domain }}", domain="{{ auth.domain }}",
user_dn="{{ auth.user_dn }}", user_dn="{{ auth.user_dn }}",
group_dn="{{ auth.group_dn }}", group_dn="{{ auth.group_dn }}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment