user ldap reader si masteridentity != SQL

This commit is contained in:
afornerot 2021-12-03 11:44:34 +01:00
parent e66f8999ed
commit 9157b78671
1 changed files with 6 additions and 0 deletions

View File

@ -133,6 +133,11 @@ parameters:
%else
ldap_tls: false
%end if
%if %%getVar("ninegate_masteridentity", 'SQL') != "SQL"
ldap_user: %%ldap_reader
ldap_password: %%pwdreader("",%%ldap_reader_passfile)
%else
%if %%getVar("activer_admin_passfile", 'non') == "oui"
%if %%getVar("ldap_writer", '') == ""
ldap_user: cn=admin,o=gouv,c=fr
@ -143,6 +148,7 @@ parameters:
%else
ldap_user: %%ldap_reader
ldap_password: %%pwdreader("",%%ldap_reader_passfile)
%end if
%end if
ldap_basedn: %%ldap_base_dn
%if %%getVar("ninegate_ldaptype", 'LDAP') == "AD"