Add support for file external_auth special directives
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
parent
0383f20d9d
commit
ec33ba5fab
@ -529,6 +529,9 @@ external_auth:
|
||||
{%- for auth, users in cfg_master['external_auth']|dictsort %}
|
||||
{{ auth }}:
|
||||
{%- for user, commands in users.items() %}
|
||||
{%- if user.startswith('^') %}
|
||||
{{ user }}: {% raw %}'{% endraw %}{{ commands }}{% raw %}'{% endraw %}
|
||||
{%- else %}
|
||||
{{ user }}:
|
||||
{%- for command in commands %}
|
||||
{%- if command is mapping %}
|
||||
@ -560,6 +563,7 @@ external_auth:
|
||||
- {% raw %}'{% endraw %}{{ command }}{% raw %}'{% endraw %}
|
||||
{%- endif %}
|
||||
{%- endfor -%}
|
||||
{%- endif %}
|
||||
{%- endfor -%}
|
||||
{%- endfor -%}
|
||||
{%- endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user