fix template indentation

This commit is contained in:
Robert Kaussow 2018-11-12 23:55:38 +01:00
parent 39e1431c1d
commit f2d0094e96

View File

@ -29,17 +29,17 @@ ldap: {{ pve_auth_ldap_realm }}
server1 {{ pve_auth_ldap_primary_server }} server1 {{ pve_auth_ldap_primary_server }}
{% if pve_auth_ldap_secondary_server is defined %} {% if pve_auth_ldap_secondary_server is defined %}
server2 {{ pve_auth_ldap_secondary_server }} server2 {{ pve_auth_ldap_secondary_server }}
{% endif %} {% endif -%}
user_attr {{ pve_auth_ldap_user_attr }} user_attr {{ pve_auth_ldap_user_attr }}
{% if pve_auth_ldap_bind_dn is defined %} {%- if pve_auth_ldap_bind_dn is defined %}
bind_dn {{ pve_auth_ldap_bind_dn }} bind_dn {{ pve_auth_ldap_bind_dn }}
{% endif %} {% endif -%}
default {{ 1 if pve_auth_ldap_is_default else 0 }} default {{ 1 if pve_auth_ldap_is_default else 0 }}
port {{ pve_auth_ldap_port }} port {{ pve_auth_ldap_port }}
secure {{ 1 if pve_auth_ldap_tls_enabled else 0 }} secure {{ 1 if pve_auth_ldap_tls_enabled else 0 }}
{% if pve_auth_ldap_tfa_oath_enabled and not pve_auth_ldap_tfa_yubico_enabled %} {%- if pve_auth_ldap_tfa_oath_enabled and not pve_auth_ldap_tfa_yubico_enabled %}
tfa type=oath,step={{ pve_auth_ldap_tfa_oath_timestep }},digits={{ pve_auth_ldap_tfa_oath_pwlength }} tfa type=oath,step={{ pve_auth_ldap_tfa_oath_timestep }},digits={{ pve_auth_ldap_tfa_oath_pwlength }}
{% elif pve_auth_ldap_tfa_yubico_enabled and not pve_auth_ldap_tfa_oath_enabled %} {%- elif pve_auth_ldap_tfa_yubico_enabled and not pve_auth_ldap_tfa_oath_enabled -%}
tfa type=yubico,id={{ pve_auth_ldap_tfa_yubico_api_id }},key={{ pve_auth_ldap_tfa_yubico_api_key }},url={{ pve_auth_ldap_tfa_yubico_url }} tfa type=yubico,id={{ pve_auth_ldap_tfa_yubico_api_id }},key={{ pve_auth_ldap_tfa_yubico_api_key }},url={{ pve_auth_ldap_tfa_yubico_url }}
{% endif %} {% endif %}
{% endif %} {% endif %}