source: extensions/Ldap_Login/admin/configuration.tpl @ 27064

Last change on this file since 27064 was 27036, checked in by 22decembre, 10 years ago

version 1.0.1

add main function : ability to add new piwigo users when ldap is successful.
add danish language, must be reviewed

this version is not yet considered stable, as needed to be reviewed and commented by beta-testers

File size: 3.0 KB
Line 
1<h2>{'Ldap_Login Plugin'|@translate}</h2>
2
3<div id="configContent">
4
5<p>{'All LDAP users can use their ldap password everywhere on piwigo if needed.'|@translate}</p>
6
7<form method="post" action="{$PLUGIN_ACTION}" class="general">
8
9        {if (!extension_loaded('ldap'))}
10                <p style="color:red;">{'Warning: LDAP Extension missing.'|@translate}</p>
11                <br />
12        {/if}
13       
14        <fieldset class="mainConf">
15        <legend>{'Ldap server host connection'|@translate}</legend>
16       
17        <ul>
18                <li>
19                        <label for="host">{'Ldap server host'|@translate}</label>
20                        <br>
21                        <input size="70" type="text" id="host" name="HOST" value="{$HOST}" />
22                </li>
23       
24                <li>
25                        <label for="ld_use_ssl">
26                        {if $LD_USE_SSL }
27                                <input type="checkbox" id="ld_use_ssl" name="LD_USE_SSL" value="{$LD_USE_SSL}" checked />
28                        {else}
29                                <input type="checkbox" id="ld_use_ssl" name="LD_USE_SSL" value="{$LD_USE_SSL}" />
30                        {/if}
31                        {'Secure connexion'|@translate}</label>
32                </li>
33       
34                <li>
35                        <label for="port">{'Ldap port'|@translate}</label>
36                        <br>
37                        <input type="text" id="port" name="PORT" value="{$PORT}" />
38                </li>
39        </ul>
40        <i>{'If empty, localhost and standard protocol ports will be used in configuration.'|@translate}</i>
41    </fieldset>
42   
43    <fieldset class="mainConf">
44        <legend>{'Ldap attributes'|@translate}</legend>
45        <ul>
46                <li>
47                        <label for="basedn">{'Base DN'|@translate}</label>
48                        <br>
49                        <input size="70" type="text" id="basedn" name="BASEDN" value="{$BASEDN}" />
50                </li>
51       
52                <li>
53                        <label for="ld_attr">{'Attribute corresponding to the user name'|@translate}</label>
54                        <br>
55                        <input type="text" id="ld_attr" name="LD_ATTR" value="{$LD_ATTR}" />
56                </li>
57        </ul>
58    </fieldset>
59   
60    <fieldset class="mainConf">
61        <legend>{'Ldap connection credentials'|@translate}</legend>
62        <ul>
63                <li>
64                        <label for="ld_binddn">{'Bind DN, field in full ldap style'|@translate}</label>
65                        <br>
66                        <input size="70" type="text" id="ld_binddn" name="LD_BINDDN" value="{$LD_BINDDN}" />
67                </li>
68               
69                <li>
70                        <label for="ld_bindpw">{'Bind password'|@translate}</label>
71                        <br>
72                        <input type="password" id="ld_bindpw" name="LD_BINDPW" />
73                </li>
74        </ul>
75        <i>{'Let the fields blank if the ldap accept anonymous connections.'|@translate}</i>
76</fieldset>
77 
78<p>
79<input type="submit" value="{'Save'|@translate}" name="save" />
80</p>
81</form>
82
83<form method="post" action="{$PLUGIN_CHECK}" class="general">
84<fieldset class="mainConf">
85<legend>{'Ldap_Login Test'|@translate}</legend>
86<i>{'You must save the settings with the Save button just up there before testing here.'|@translate}</i>
87        <ul>
88                <li>
89                        <label for="username">{'Username'|@translate}</label>
90                        <br>
91                        <input type="text" id="username" name="USERNAME" value="{$USERNAME}" />
92                </li>
93               
94                <li>
95                        <label for="ld_attr">{'Your password'|@translate}</label>
96                        <br>
97                        <input type="password" id="password" name="PASSWORD" value="{$PASSWORD}" />
98                </li>
99        </ul>
100       
101        {if (!empty($LD_CHECK_LDAP))}
102                {$LD_CHECK_LDAP}
103        {/if}
104
105</fieldset>
106<p><input type="submit" value="{'Test Settings'|@translate}" name="check_ldap" /></p>
107
108</form>
109</div>
Note: See TracBrowser for help on using the repository browser.