déplacement dans un sous-dossier modules_EOLE_envole
This commit is contained in:
32
modules_EOLE_envole/documents/exercice2/1_phpldapadmin.xml
Normal file
32
modules_EOLE_envole/documents/exercice2/1_phpldapadmin.xml
Normal file
@ -0,0 +1,32 @@
|
||||
<creole>
|
||||
<files>
|
||||
<file name='/etc/phpldapadmin/apache.conf'/>
|
||||
<file name='/etc/phpldapadmin/config.php' source='phpldapadmin.php' filelist='phpldapadmin'/>
|
||||
</files>
|
||||
<variables>
|
||||
|
||||
<family name='services'>
|
||||
<variable name='activate_phpldapadmin' type='string' description="Activer phpldapadmin">
|
||||
<value>non</value>
|
||||
</variable>
|
||||
</family>
|
||||
<family name='phpldapadmin' hidden='True'>
|
||||
<variable name="phpldapadmin_host" type="string" description="Adresse IP ou DNS du serveur ldap"/>
|
||||
<variable name="phpldapadmin_name" type="string" description="Nom du serveur ldap"/>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name='valid_enum' target='activate_phpldapadmin'>
|
||||
<param>['oui','non']</param>
|
||||
</check>
|
||||
<check name='obligatoire' target='phpldapadmin_host'/>
|
||||
<condition name='hidden_if_in' source='activate_phpldapadmin'>
|
||||
<param>non</param>
|
||||
<target type='family'>phpldapadmin</target>
|
||||
<target type='filelist'>phpldapadmin</target>
|
||||
</condition>
|
||||
</constraints>
|
||||
<help>
|
||||
</help>
|
||||
</creole>
|
||||
|
6
modules_EOLE_envole/documents/exercice2/apache.conf
Normal file
6
modules_EOLE_envole/documents/exercice2/apache.conf
Normal file
@ -0,0 +1,6 @@
|
||||
%if %%activate_phpldapadmin == 'oui'
|
||||
|
||||
...
|
||||
|
||||
%end if
|
||||
|
17
modules_EOLE_envole/documents/exercice2/phpldapadmin.php
Normal file
17
modules_EOLE_envole/documents/exercice2/phpldapadmin.php
Normal file
@ -0,0 +1,17 @@
|
||||
...
|
||||
|
||||
/*********************************************/
|
||||
/* Define your LDAP servers in this section */
|
||||
/*********************************************/
|
||||
|
||||
%if %%phpldapadmin_name == ""
|
||||
$ldapservers->SetValue($i,'server','name','Serveur LDAP');
|
||||
%else
|
||||
$ldapservers->SetValue($i,'server','name','%%phpldapadmin_name');
|
||||
%end if
|
||||
|
||||
$ldapservers->SetValue($i,'server','host','ldap://%%phpldapadmin_host');
|
||||
|
||||
$ldapservers->SetValue($i,'server','tls',false);
|
||||
|
||||
...
|
Reference in New Issue
Block a user