2026-07-03 16:57:04 -04:00
|
|
|
; Géré par Set-OPS (rôle serveur_icingaweb2). Ne pas éditer à la main.
|
2026-07-03 19:05:04 -04:00
|
|
|
{% if serveur_icingaweb2_auth == 'external' %}
|
|
|
|
|
; SSO : l'utilisateur est fourni par la passerelle (oauth2-proxy → Keycloak) via REMOTE_USER.
|
|
|
|
|
[icingaweb2]
|
|
|
|
|
backend = "external"
|
2026-08-07 19:54:41 -04:00
|
|
|
|
|
|
|
|
; Backend LDAP declare mais JAMAIS utilise pour authentifier : l'externe repond en
|
|
|
|
|
; premier. Il sert au backend de GROUPES, qui doit resoudre un nom d'utilisateur vers
|
|
|
|
|
; son DN — les membres d'un `groupOfNames` sont des DN, pas des uid.
|
|
|
|
|
; Sans lui, l'habilitation par groupe est impossible en mode SSO, et il faudrait
|
|
|
|
|
; nommer des personnes (ce que D-66 interdit).
|
|
|
|
|
[ldap-annuaire]
|
|
|
|
|
backend = "ldap"
|
|
|
|
|
resource = "icingaweb_ldap"
|
|
|
|
|
user_class = "{{ serveur_icingaweb2_ldap_user_class }}"
|
|
|
|
|
user_name_attribute = "{{ serveur_icingaweb2_ldap_user_attr }}"
|
|
|
|
|
base_dn = "{{ serveur_icingaweb2_ldap_users_dn }}"
|
2026-07-03 19:05:04 -04:00
|
|
|
{% else %}
|
2026-07-03 16:57:04 -04:00
|
|
|
[icingaweb2]
|
|
|
|
|
backend = "ldap"
|
|
|
|
|
resource = "icingaweb_ldap"
|
|
|
|
|
user_class = "{{ serveur_icingaweb2_ldap_user_class }}"
|
|
|
|
|
user_name_attribute = "{{ serveur_icingaweb2_ldap_user_attr }}"
|
|
|
|
|
base_dn = "{{ serveur_icingaweb2_ldap_users_dn }}"
|
2026-07-03 19:05:04 -04:00
|
|
|
{% endif %}
|