remoteauth.ldif.j2
23 lignes · 856 octets
{# Overlay remoteauth (OI-104) : ajout de l'entrée (oiam_ldap_remoteauth_dn absent) ou remplacement de chacun de ses attributs. #} {% set lignes = oiam_ldap_remoteauth + oiam_ldap_remoteauth_correspondances %} {% if oiam_ldap_remoteauth_dn is not defined %} dn: olcOverlay={0}remoteauth,olcDatabase={2}mdb,cn=config objectClass: olcOverlayConfig objectClass: olcRemoteAuthCfg olcOverlay: {0}remoteauth {% for ligne in lignes %} {{ ligne }} {% endfor %} {% else %} dn: {{ oiam_ldap_remoteauth_dn }} changetype: modify {% for attribut in ['olcRemoteAuthDNAttribute', 'olcRemoteAuthDomainAttribute', 'olcRemoteAuthMapping', 'olcRemoteAuthTLS', 'olcRemoteAuthRetryCount', 'olcRemoteAuthStore'] %} replace: {{ attribut }} {% for ligne in lignes if ligne.startswith(attribut ~ ': ') %} {{ ligne }} {% endfor %} - {% endfor %} {% endif %}
GitRust