xoxys.pve/templates/etc/pve/domains.cfg.j2

26 lines
858 B
Django/Jinja

#jinja2:lstrip_blocks: True
pam: pam
comment {{ pve_auth_pam_description }}
default {{ 1 if pve_auth_pam_is_default else 0 }}
pve: pve
comment {{ pve_auth_pve_description }}
default {{ 1 if pve_auth_pve_is_default else 0 }}
{% if pve_auth_ldap_enabled %}
ldap: {{ pve_auth_ldap_realm }}
comment {{ pve_auth_ldap_description }}
base_dn {{ pve_auth_ldap_base_dn }}
server1 {{ pve_auth_ldap_primary_server }}
{% if pve_auth_ldap_secondary_server is defined %}
server2 {{ pve_auth_ldap_secondary_server }}
{% endif %}
user_attr {{ pve_auth_ldap_user_attr }}
{% if pve_auth_ldap_bind_dn is defined %}
bind_dn {{ pve_auth_ldap_bind_dn }}
{% endif %}
default {{ 1 if pve_auth_ldap_is_default else 0 }}
port {{ pve_auth_ldap_port }}
secure {{ 1 if pve_auth_ldap_tls_enabled else 0 }}
{% endif %}