[27036] | 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> |
---|
[28534] | 39 | |
---|
| 40 | <i>{'If empty, localhost and standard protocol ports will be used in configuration.'|@translate}</i> |
---|
| 41 | |
---|
| 42 | <li> |
---|
| 43 | <label for="basedn">{'Base DN'|@translate}</label> |
---|
| 44 | <br> |
---|
| 45 | <input size="70" type="text" id="basedn" name="BASEDN" value="{$BASEDN}" /> |
---|
| 46 | </li> |
---|
[27036] | 47 | </ul> |
---|
[28534] | 48 | |
---|
[27036] | 49 | </fieldset> |
---|
| 50 | |
---|
| 51 | <fieldset class="mainConf"> |
---|
[28534] | 52 | <legend>{'Ldap users'|@translate}</legend> |
---|
[27036] | 53 | <ul> |
---|
| 54 | <li> |
---|
[28534] | 55 | <label for="usersbranch">{'Users Branch'|@translate}</label> |
---|
[27036] | 56 | <br> |
---|
[28534] | 57 | <input size="70" type="text" id="usersbranch" name="USERSBRANCH" value="{$USERSBRANCH}" /> |
---|
[27036] | 58 | </li> |
---|
[28534] | 59 | |
---|
[27036] | 60 | <li> |
---|
[28534] | 61 | <label for="ld_search_users"> |
---|
| 62 | {if $LD_SEARCH_USERS } |
---|
| 63 | <input type="checkbox" id="ld_search_users" name="LD_SEARCH_USERS" value="{$LD_SEARCH_USERS}" checked /> |
---|
| 64 | {else} |
---|
| 65 | <input type="checkbox" id="ld_search_users" name="LD_SEARCH_USERS" value="{$LD_SEARCH_USERS}" /> |
---|
| 66 | {/if} |
---|
| 67 | {'Search Ldap users ?'|@translate}</label> |
---|
| 68 | </li> |
---|
| 69 | |
---|
| 70 | <li> |
---|
[27036] | 71 | <label for="ld_attr">{'Attribute corresponding to the user name'|@translate}</label> |
---|
| 72 | <br> |
---|
| 73 | <input type="text" id="ld_attr" name="LD_ATTR" value="{$LD_ATTR}" /> |
---|
| 74 | </li> |
---|
| 75 | </ul> |
---|
| 76 | </fieldset> |
---|
| 77 | |
---|
| 78 | <fieldset class="mainConf"> |
---|
[28534] | 79 | <legend>{'Ldap groups'|@translate}</legend> |
---|
| 80 | |
---|
| 81 | <p><i>{'If you create a <a href="admin.php?page=group_list">piwigo group</a> with the same name as an ldap one, all members of the ldap group will automatically join the piwigo group at their next authentication. This allows you to create <a href="admin.php?page=help§ion=groups">specific right access management</a> (restrict access to a particaular album...).'|@translate}</i></p> |
---|
| 82 | <ul> |
---|
| 83 | |
---|
| 84 | <li> |
---|
| 85 | <label for="groupbranch">{'Groups Branch'|@translate}</label> |
---|
| 86 | <br> |
---|
| 87 | <input size="70" type="text" id="groupbranch" name="GROUPBRANCH" value="{$GROUPBRANCH}" /> |
---|
| 88 | </li> |
---|
| 89 | |
---|
| 90 | <li> |
---|
| 91 | <label for="ld_search_groups"> |
---|
| 92 | {if $LD_SEARCH_GROUPS } |
---|
| 93 | <input type="checkbox" id="ld_search_groups" name="LD_SEARCH_GROUPS" value="{$LD_SEARCH_GROUPS}" checked /> |
---|
| 94 | {else} |
---|
| 95 | <input type="checkbox" id="ld_search_groups" name="LD_SEARCH_GROUPS" value="{$LD_SEARCH_GROUPS}" /> |
---|
| 96 | {/if} |
---|
| 97 | {'Search Ldap groups ?'|@translate}</label> |
---|
| 98 | </li> |
---|
| 99 | |
---|
| 100 | <li> |
---|
| 101 | <label for="ld_attr">{'Attribute corresponding to the group name'|@translate}</label> |
---|
| 102 | <br> |
---|
| 103 | <input type="text" id="ld_group" name="LD_GROUP" value="{$LD_GROUP}" /> |
---|
| 104 | </li> |
---|
| 105 | <br> |
---|
| 106 | |
---|
| 107 | <li> |
---|
| 108 | <label for="webmasters_group">{'Webmasters group'|@translate}</label> |
---|
| 109 | <br> |
---|
| 110 | {'Users members of this ldap group are granted piwigo webmasters.'|@translate}<br> |
---|
| 111 | <input size="70" type="text" id="webmasters_group" name="WEBMASTERS_GROUP" value="{$WEBMASTERS_GROUP}" /> |
---|
| 112 | </li> |
---|
| 113 | |
---|
| 114 | <li> |
---|
| 115 | <label for="admins_group">{'Admins group'|@translate}</label> |
---|
| 116 | <br> |
---|
| 117 | {'Users members of this ldap group are granted piwigo admins.'|@translate}<br> |
---|
| 118 | <input size="70" type="text" id="admins_group" name="ADMINS_GROUP" value="{$ADMINS_GROUP}" /> |
---|
| 119 | |
---|
| 120 | <br><br> |
---|
| 121 | |
---|
| 122 | {'To get them out of these roles, they must be sorted of the ldap group and then role updated in the <a href="admin.php?page=user_list">piwigo admin</a>. If a group is mandatory as described in the <a href="admin.php?page=plugin-Ldap_Login-newusers">new piwigo users tab</a>, then they must also belong to the users group.'|@translate} |
---|
| 123 | </li> |
---|
| 124 | </ul> |
---|
| 125 | </fieldset> |
---|
| 126 | |
---|
| 127 | <fieldset class="mainConf"> |
---|
[27036] | 128 | <legend>{'Ldap connection credentials'|@translate}</legend> |
---|
| 129 | <ul> |
---|
| 130 | <li> |
---|
| 131 | <label for="ld_binddn">{'Bind DN, field in full ldap style'|@translate}</label> |
---|
| 132 | <br> |
---|
| 133 | <input size="70" type="text" id="ld_binddn" name="LD_BINDDN" value="{$LD_BINDDN}" /> |
---|
| 134 | </li> |
---|
| 135 | |
---|
| 136 | <li> |
---|
| 137 | <label for="ld_bindpw">{'Bind password'|@translate}</label> |
---|
| 138 | <br> |
---|
| 139 | <input type="password" id="ld_bindpw" name="LD_BINDPW" /> |
---|
| 140 | </li> |
---|
| 141 | </ul> |
---|
| 142 | <i>{'Let the fields blank if the ldap accept anonymous connections.'|@translate}</i> |
---|
| 143 | </fieldset> |
---|
| 144 | |
---|
| 145 | <p> |
---|
| 146 | <input type="submit" value="{'Save'|@translate}" name="save" /> |
---|
| 147 | </p> |
---|
| 148 | </form> |
---|
| 149 | |
---|
| 150 | <form method="post" action="{$PLUGIN_CHECK}" class="general"> |
---|
| 151 | <fieldset class="mainConf"> |
---|
| 152 | <legend>{'Ldap_Login Test'|@translate}</legend> |
---|
| 153 | <i>{'You must save the settings with the Save button just up there before testing here.'|@translate}</i> |
---|
| 154 | <ul> |
---|
| 155 | <li> |
---|
| 156 | <label for="username">{'Username'|@translate}</label> |
---|
| 157 | <br> |
---|
| 158 | <input type="text" id="username" name="USERNAME" value="{$USERNAME}" /> |
---|
| 159 | </li> |
---|
| 160 | |
---|
| 161 | <li> |
---|
| 162 | <label for="ld_attr">{'Your password'|@translate}</label> |
---|
| 163 | <br> |
---|
| 164 | <input type="password" id="password" name="PASSWORD" value="{$PASSWORD}" /> |
---|
| 165 | </li> |
---|
| 166 | </ul> |
---|
| 167 | |
---|
| 168 | {if (!empty($LD_CHECK_LDAP))} |
---|
| 169 | {$LD_CHECK_LDAP} |
---|
| 170 | {/if} |
---|
| 171 | |
---|
| 172 | </fieldset> |
---|
| 173 | <p><input type="submit" value="{'Test Settings'|@translate}" name="check_ldap" /></p> |
---|
| 174 | |
---|
| 175 | </form> |
---|
| 176 | </div> |
---|