dicos/99_one-frontend.xml: Calcul de la valeur de activer_client_ldap en fonction

de la variable d'authentification "sunstone_auth_modes"

fixes #9144 @2h
This commit is contained in:
Philippe Caseiro 2014-10-07 15:19:41 +02:00
parent 401edf3743
commit 38aa3c612b
3 changed files with 12 additions and 4 deletions

View File

@ -27,7 +27,7 @@
<variable name='langue_sunstone' type='string' description="Langue par défaut de l'interface" mode='expert'> <variable name='langue_sunstone' type='string' description="Langue par défaut de l'interface" mode='expert'>
<value>fr_FR</value> <value>fr_FR</value>
</variable> </variable>
<variable name='sunstone_auth_modes' type='string' description="Modes supplémentaires d'authentification des utilisateurs" mode='expert' multi='True' /> <variable name='sunstone_auth_modes' type='string' description="Modes supplémentaires d'authentification des utilisateurs" mode='expert'/>
</family> </family>
</variables> </variables>
@ -36,8 +36,16 @@
<param type='eole' name='valeur'>adresse_ip_eth0</param> <param type='eole' name='valeur'>adresse_ip_eth0</param>
</fill> </fill>
<check name='valid_enum' target='sunstone_auth_modes'> <check name='valid_enum' target='sunstone_auth_modes'>
<param>['ldap']</param> <param>['', 'ldap']</param>
</check> </check>
<auto name='calc_multi_condition' target='activer_client_ldap'>
<param>ldap</param>
<param type='eole' name='condition_1'>sunstone_auth_modes</param>
<param name='match'>distant</param>
<param name='mismatch'>non</param>
</auto>
<condition name='disabled_if_in' source='activer_onefrontend'> <condition name='disabled_if_in' source='activer_onefrontend'>
<param>non</param> <param>non</param>
<!--target type='filelist'>onefrontend</target--> <!--target type='filelist'>onefrontend</target-->

View File

@ -1,4 +1,4 @@
%if 'ldap' in %%getVar('sunstone_auth_modes') %if %%getVar('sunstone_auth_modes', None) == 'ldap'
server 1: server 1:
# Ldap user able to query, if not set connects as anonymous. For # Ldap user able to query, if not set connects as anonymous. For
# Active Directory append the domain name. Example: # Active Directory append the domain name. Example:

View File

@ -65,7 +65,7 @@
# driver defined for the user # driver defined for the user
# #
#:auth: sunstone #:auth: sunstone
%if %%getVar('sunstone_auth_modes', []) == [] %if %%getVar('sunstone_auth_modes', None)
:auth: sunstone :auth: sunstone
%else %else
:auth: opennebula :auth: opennebula