eolesso_adresse should be forced only when LemonLDAP::NG is enabled

The “calc_val” was failing when LemonLDAP::NG was disabled because
“authWebName” can't be used.

We shouldn't force “eolesso_adresse” when LemonLDAP::NG is disabled,
the user must be able to set whatever value she wants.

* dicos/71_lemonldap_ng_scribe.xml: fill the “eolesso_adresse” and
  freeze it when LemonLDAP::NG is enabled.

Ref: #30852
This commit is contained in:
Daniel Dehennin 2020-10-15 09:07:40 +02:00
parent 90411f89f7
commit 9b66227236
1 changed files with 10 additions and 3 deletions

View File

@ -32,9 +32,16 @@
<param name='default_mismatch'>ldap</param>
</auto>
<auto name='calc_val' target='eolesso_adresse'>
<param type='eole'>authWebName</param>
</auto>
<fill name='calc_val_first_value' target='eolesso_adresse'>
<param type='eole' optional='True' hidden='False'>authWebName</param>
<param type='eole' optional='True' hidden='False'>web_url</param>
<param type='eole'>nom_domaine_machine</param>
</fill>
<condition name='frozen_if_in' source='activerLemon'>
<param>oui</param>
<target type='variable'>eolesso_adresse</target>
</condition>
<auto name='calc_val' target='ldapServer'>
<param type='eole'>adresse_ip_ldap</param>