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 %else
ldap_tls: false ldap_tls: false
%end if %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("activer_admin_passfile", 'non') == "oui"
%if %%getVar("ldap_writer", '') == "" %if %%getVar("ldap_writer", '') == ""
ldap_user: cn=admin,o=gouv,c=fr ldap_user: cn=admin,o=gouv,c=fr
@ -143,6 +148,7 @@ parameters:
%else %else
ldap_user: %%ldap_reader ldap_user: %%ldap_reader
ldap_password: %%pwdreader("",%%ldap_reader_passfile) ldap_password: %%pwdreader("",%%ldap_reader_passfile)
%end if
%end if %end if
ldap_basedn: %%ldap_base_dn ldap_basedn: %%ldap_base_dn
%if %%getVar("ninegate_ldaptype", 'LDAP') == "AD" %if %%getVar("ninegate_ldaptype", 'LDAP') == "AD"