318 |
richard |
1 |
<?php
|
775 |
stephane |
2 |
require_once("lib/alcasar/freeradius/siteconfig.php");
|
|
|
3 |
require_once("lib/alcasar/freeradius/ldapconfig.php");
|
|
|
4 |
|
318 |
richard |
5 |
/* written by steweb57 */
|
|
|
6 |
/****************************************************************
|
1672 |
richard |
7 |
* CONSTANTES AVEC CHEMINS DES FICHIERS DE CONFIGURATION *
|
318 |
richard |
8 |
*****************************************************************/
|
|
|
9 |
|
|
|
10 |
define ("ALCASAR_RADIUS_SITE", "/etc/raddb/sites-available/alcasar");
|
|
|
11 |
define ("ALCASAR_RADIUS_MODULE_LDAP", "/etc/raddb/modules/ldap");
|
|
|
12 |
|
1160 |
stephane |
13 |
/****************************************************************
|
1672 |
richard |
14 |
* Choice of language *
|
1160 |
stephane |
15 |
*****************************************************************/
|
|
|
16 |
|
|
|
17 |
$Language = 'en';
|
|
|
18 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
|
|
19 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
|
|
20 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
|
|
21 |
if($Language == 'fr'){
|
1672 |
richard |
22 |
$l_file = "Fichier ";
|
|
|
23 |
$l_not_found = " non présent";
|
1160 |
stephane |
24 |
$l_no_writing_right_on_file = "Vous n'avez pas les droits d'écriture sur le fichier ";
|
|
|
25 |
$l_ldap_update_sucess = "Mise à jour des paramètres LDAP réalisée avec succès";
|
1672 |
richard |
26 |
$l_ldap_title = "Authentification externe : LDAP";
|
|
|
27 |
$l_ldap_legend = "Authentification LDAP";
|
1160 |
stephane |
28 |
$l_ldap_auth_enable_label = "Activer l'authentification LDAP:";
|
1672 |
richard |
29 |
$l_ldap_YES = "OUI";
|
|
|
30 |
$l_ldap_NO = "NON";
|
1677 |
richard |
31 |
$l_ldap_server_label = "Serveur LDAP:";
|
|
|
32 |
$l_ldap_server_text = "Adresse IP (ou nom d'hôte) du serveur LDAP";
|
1160 |
stephane |
33 |
$l_ldap_base_dn_label = "DN de la base LDAP:";
|
1673 |
richard |
34 |
$l_ldap_base_dn_text = "DN est le 'Distinguished Name', il définit où se situent les informations des utilisateurs dans l'annuaire. Exemple LDAP: 'o=mycompany, c=FR'. Exemple AD 'ou=my_lan,dc=server_name,dc=localdomain'";
|
1160 |
stephane |
35 |
$l_ldap_filter_label = "Identifiant LDAP:";
|
1673 |
richard |
36 |
$l_ldap_filter_text = "Clé utilisée lors de la recherche d'un identifiant de connexion, exemple: 'uid', 'sn', etc. Pour un AD mettre 'sAMAccountName'.";
|
|
|
37 |
$l_ldap_base_filter_label = "Filtre de recherche d'utilisateurs LDAP:";
|
|
|
38 |
$l_ldap_base_filter_text = "En option, vous pouvez limiter les objets recherchés avec des filtres additionnels. Par exemple 'objectClass=posixGroup' aurait comme conséquence l'utilisation de '(&(uid=username)(objectClass=posixGroup))'";
|
1672 |
richard |
39 |
$l_ldap_user_label = "Utilisateur LDAP:";
|
1673 |
richard |
40 |
$l_ldap_user_text = "Nom d'utilisateur utilisé par ALCASAR pour se connecter au serveur LDAP. Laissez vide pour utiliser un accès invité (ou anomyme). Obligatoire sur un AD. exemple LDAP : 'uid=username,ou=my_lan,o=mycompany,c=FR'. Exemple AD : cn=username,ou=my_lan,dc=server_name,dc=localdomain'";
|
1160 |
stephane |
41 |
$l_ldap_password_label = "Mot de passe LDAP:";
|
1673 |
richard |
42 |
$l_ldap_password_text = "Laissez vide pour un accès invité (ou anonyme). Obligatoire sur un AD.";
|
1672 |
richard |
43 |
$l_ldap_submit = "Enregistrer";
|
|
|
44 |
$l_ldap_reset = "Annuler";
|
1160 |
stephane |
45 |
$l_ldap_test_network_failed = "Pas de connectivité réseau avec le serveur LDAP.";
|
|
|
46 |
$l_ldap_test_connection_failed = "Impossible de se connecter au serveur LDAP.";
|
|
|
47 |
$l_ldap_test_bind_ok = "Connexion LDAP réussie...";
|
1673 |
richard |
48 |
$l_ldap_test_bind_failed = "Echec d'authentification sur le serveur LDAP... Vérifiez votre configuration";
|
1395 |
richard |
49 |
$l_ldap_test_dn_ok = "DN semble bon";
|
|
|
50 |
$l_ldap_test_dn_failed = "DN semble mauvais";
|
1160 |
stephane |
51 |
} else {
|
1672 |
richard |
52 |
$l_file = "File ";
|
|
|
53 |
$l_not_found = " not found";
|
1160 |
stephane |
54 |
$l_no_writing_right_on_file = "You have no writting permission on the file ";
|
|
|
55 |
$l_ldap_update_sucess = "Successfull LDAP settings update";
|
1672 |
richard |
56 |
$l_ldap_title = "External authentication : LDAP";
|
|
|
57 |
$l_ldap_legend = "LDAP authentication";
|
1160 |
stephane |
58 |
$l_ldap_auth_enable_label = "Use LDAP authentication :";
|
1672 |
richard |
59 |
$l_ldap_YES = "YES";
|
|
|
60 |
$l_ldap_NO = "NO";
|
1677 |
richard |
61 |
$l_ldap_server_label = "LDAP server :";
|
|
|
62 |
$l_ldap_server_text = "This is the IP address (or hostname) of the LDAP server.";
|
1160 |
stephane |
63 |
$l_ldap_base_dn_label = "LDAP base dn:";
|
1673 |
richard |
64 |
$l_ldap_base_dn_text = "This is the 'Distinguished Name', locating the user information in the directory. e.g. LDAP : 'o=MyCompany,c=US'. e.g. AD : 'ou=my_lan,dc=server_name,dc=localdomain'";
|
1160 |
stephane |
65 |
$l_ldap_filter_label = "LDAP uid:";
|
1673 |
richard |
66 |
$l_ldap_filter_text = "This is the key used to search for a given login identity, e.g. 'uid', 'sn', etc.. For AD use 'sAMAccountName'.";
|
1160 |
stephane |
67 |
$l_ldap_base_filter_label = "LDAP user filter:";
|
|
|
68 |
$l_ldap_base_filter_text = "Optionally you can further limit the searched objects with additional filters. For example 'objectClass=posixGroup' would result in the use of '(&(uid=username)(objectClass=posixGroup))'";
|
1672 |
richard |
69 |
$l_ldap_user_label = "LDAP user dn:";
|
1673 |
richard |
70 |
$l_ldap_user_text = "Username used by ALCASAR to connect to the LDAP server. Leave blank to use anonymous binding. Required for AD. e.g. LDAP :'uid=Username,ou=my_lan,o=mycompany,c=US'. e.g. AD : cn=username,ou=my_lan,dc=server_name,dc=localdomain'";
|
1160 |
stephane |
71 |
$l_ldap_password_label = "LDAP password:";
|
1673 |
richard |
72 |
$l_ldap_password_text = "Leave blank to use anonymous binding. Required for AD.";
|
1672 |
richard |
73 |
$l_ldap_submit = "Save";
|
|
|
74 |
$l_ldap_reset = "Reset";
|
1160 |
stephane |
75 |
$l_ldap_test_network_failed = "LDAP server is not reachable.";
|
|
|
76 |
$l_ldap_test_connection_failed = "LDAP connexion failed...";
|
|
|
77 |
$l_ldap_test_bind_ok = "LDAP connexion success...";
|
|
|
78 |
$l_ldap_test_bind_failed = "LDAP authentication failed...Check your ldap setup...";
|
1395 |
richard |
79 |
$l_ldap_test_dn_ok = "DN seems to be right";
|
|
|
80 |
$l_ldap_test_dn_failed = "DN seems to be wrong";
|
1160 |
stephane |
81 |
}
|
318 |
richard |
82 |
/********************************************************
|
|
|
83 |
* TEST DES FICHIERS DE CONFIGURATION *
|
|
|
84 |
*********************************************************/
|
|
|
85 |
|
|
|
86 |
//Test de présence et des droits en lecture des fichiers de configuration.
|
|
|
87 |
if (!file_exists(ALCASAR_RADIUS_SITE)){
|
1160 |
stephane |
88 |
exit($l_file.ALCASAR_RADIUS_SITE.$l_not_found);
|
318 |
richard |
89 |
}
|
|
|
90 |
if (!file_exists(ALCASAR_RADIUS_MODULE_LDAP)){
|
1160 |
stephane |
91 |
exit($l_file.ALCASAR_RADIUS_MODULE_LDAP.$l_not_found);
|
318 |
richard |
92 |
}
|
|
|
93 |
if (!is_readable(ALCASAR_RADIUS_SITE)){
|
1160 |
stephane |
94 |
exit($l_no_writing_right_on_file.ALCASAR_RADIUS_SITE);
|
318 |
richard |
95 |
}
|
|
|
96 |
if (!is_readable(ALCASAR_RADIUS_MODULE_LDAP)){
|
1160 |
stephane |
97 |
exit($l_no_writing_right_on_file.ALCASAR_RADIUS_MODULE_LDAP);
|
318 |
richard |
98 |
}
|
|
|
99 |
|
|
|
100 |
/********************************************************
|
|
|
101 |
* VARIABLES DE FORMULAIRE *
|
|
|
102 |
*********************************************************/
|
|
|
103 |
|
|
|
104 |
if (isset($_GET['erreur'])&&(!($_GET['erreur']==""))) $erreur = $_GET['erreur']; else $erreur = false;//valeur de $erreur non controlée car ne sert qu'un afficher un msg.
|
|
|
105 |
if (isset($_GET['update'])&&($_GET['update']=="ok")) $update = true; else $update = false;
|
|
|
106 |
|
|
|
107 |
$message = "";
|
|
|
108 |
if ((bool)$erreur){
|
344 |
richard |
109 |
$message = "<div align=\"center\"><br>";
|
|
|
110 |
$message.="<strong><font color=\"red\">".$erreur."</font></strong><br>";
|
|
|
111 |
$message.="<br></div>";
|
318 |
richard |
112 |
}else{
|
|
|
113 |
if ($update){
|
344 |
richard |
114 |
$message = "<div align=\"center\"><br>";
|
1160 |
stephane |
115 |
$message.="<strong><font color=\"green\">$l_ldap_update_sucess</font><br></strong>";
|
344 |
richard |
116 |
$message.="<br></div>";
|
318 |
richard |
117 |
}
|
|
|
118 |
}
|
|
|
119 |
|
|
|
120 |
/****************************************************************
|
|
|
121 |
* VARIABLES RESULTATS *
|
|
|
122 |
*****************************************************************/
|
|
|
123 |
//Création des variables nécessaires
|
|
|
124 |
//variables ldap
|
1160 |
stephane |
125 |
$ldap_on = "";
|
|
|
126 |
$ldap_server = ""; //IP ou nom DNS du seveur LDAP (ou AD)
|
318 |
richard |
127 |
//par défaut : server = "ldap.your.domain"
|
1160 |
stephane |
128 |
$ldap_identity = ""; //nom d'utilisateur qui intérroge le ldap (vide = anonyme)
|
318 |
richard |
129 |
//par défaut : # identity = "cn=admin,o=My Org,c=UA"
|
1160 |
stephane |
130 |
$ldap_password = ""; //mot de passe de l'utilisateur intérrogeant le ldap
|
318 |
richard |
131 |
//par défaut : # password = mypass
|
1160 |
stephane |
132 |
$ldap_basedn = ""; //DN de base ou l'on recherchera les utilisateurs
|
318 |
richard |
133 |
//par défaut : basedn = "o=My Org,c=UA"
|
1160 |
stephane |
134 |
$ldap_filter = ""; //permet entre autre de déterminer l'attribut utilisé pour la recherche d'un utilisateur dans LDAP
|
318 |
richard |
135 |
//attribut uid pour un ldap standard, samaccountname pour AD
|
|
|
136 |
//par défaut : filter = "(uid=%{Stripped-User-Name:-%{User-Name}})"
|
|
|
137 |
$ldap_base_filter = ""; //
|
|
|
138 |
//par défaut : # base_filter = "(objectclass=radiusprofile)"
|
|
|
139 |
|
|
|
140 |
/********************************************************
|
1672 |
richard |
141 |
* Fichier ALCASAR_RADIUS_SITE *
|
318 |
richard |
142 |
*********************************************************/
|
775 |
stephane |
143 |
$site = new siteConfig();
|
|
|
144 |
$site->load(ALCASAR_RADIUS_SITE);
|
|
|
145 |
$ldap_on = $site->authorize->ldap;
|
776 |
stephane |
146 |
|
775 |
stephane |
147 |
/********************************************************
|
1672 |
richard |
148 |
* Fichier ALCASAR_RADIUS_MODULE_LDAP *
|
775 |
stephane |
149 |
*********************************************************/
|
318 |
richard |
150 |
//Lecture du fichier /etc/raddb/modules/ldap
|
775 |
stephane |
151 |
$ldap = new ldapConfig();
|
|
|
152 |
$ldap->load(ALCASAR_RADIUS_MODULE_LDAP);
|
1160 |
stephane |
153 |
$ldap_server = $ldap->host; // others options only in alcasar 3.x ($ldap->server)
|
|
|
154 |
$ldap_identity = $ldap->identity;
|
|
|
155 |
$ldap_password = $ldap->password;
|
|
|
156 |
$ldap_basedn = $ldap->basedn;
|
|
|
157 |
$ldap_filter = $ldap->uid; // others options only in alcasar 3.x ($ldap->filter)
|
|
|
158 |
$ldap_base_filter = $ldap->base_filter;
|
318 |
richard |
159 |
|
1395 |
richard |
160 |
function ldap_test($f_ldap_server, $f_ldap_identity, $f_ldap_password, $f_ldap_basedn, $f_ldap_filter, $f_ldap_port = "389"){
|
620 |
stephane |
161 |
// Test du serveur
|
|
|
162 |
if (!$sock = @fsockopen($f_ldap_server, $f_ldap_port, $num, $error, 2)) {
|
658 |
stephane |
163 |
// no network connection
|
620 |
stephane |
164 |
return -1;
|
|
|
165 |
} else {
|
|
|
166 |
fclose($sock);
|
|
|
167 |
// Connexion au serveur LDAP
|
|
|
168 |
$ldapconn = ldap_connect($f_ldap_server, $f_ldap_port);
|
|
|
169 |
ldap_set_option($ldapconn, LDAP_OPT_TIMELIMIT, 2);
|
|
|
170 |
if ($ldapconn) {
|
|
|
171 |
$ldapbind = ldap_bind($ldapconn, $f_ldap_identity, $f_ldap_password);
|
|
|
172 |
if ($ldapbind) {
|
658 |
stephane |
173 |
// LDAP Bind success
|
1395 |
richard |
174 |
//try search
|
|
|
175 |
$query = $f_ldap_filter."=*";
|
|
|
176 |
if($search = ldap_search($ldapconn, $f_ldap_basedn, $query)){
|
|
|
177 |
ldap_unbind($ldapconn);
|
|
|
178 |
return 2;
|
|
|
179 |
} else {
|
|
|
180 |
ldap_unbind($ldapconn);
|
|
|
181 |
return 1;
|
|
|
182 |
}
|
|
|
183 |
} else {
|
|
|
184 |
// Test LDAP Version 3
|
|
|
185 |
ldap_set_option($ldapconn, LDAP_OPT_PROTOCOL_VERSION, 3);
|
|
|
186 |
$ldapbind = ldap_bind($ldapconn, $f_ldap_identity, $f_ldap_password);
|
|
|
187 |
if ($ldapbind) {
|
|
|
188 |
// LDAP Bind success
|
|
|
189 |
//try search
|
|
|
190 |
$query = $f_ldap_filter."=*";
|
|
|
191 |
if($search = ldap_search($ldapconn, $f_ldap_basedn, $query)){
|
|
|
192 |
ldap_unbind($ldapconn);
|
|
|
193 |
return 2;
|
|
|
194 |
} else {
|
658 |
stephane |
195 |
ldap_unbind($ldapconn);
|
|
|
196 |
return 1;
|
1395 |
richard |
197 |
}
|
|
|
198 |
} else {
|
|
|
199 |
// LDAP Bind failed
|
|
|
200 |
return 0;
|
|
|
201 |
}
|
620 |
stephane |
202 |
}
|
|
|
203 |
} else {
|
658 |
stephane |
204 |
// LDAP connection failed
|
|
|
205 |
return -2;
|
620 |
stephane |
206 |
}
|
1395 |
richard |
207 |
|
620 |
stephane |
208 |
}
|
|
|
209 |
}
|
|
|
210 |
|
318 |
richard |
211 |
/********************************
|
|
|
212 |
* TO DO *
|
|
|
213 |
*********************************/
|
|
|
214 |
//internationnalisation à mettre en haut du fichier pour internationnaliser les erreurs de script!
|
|
|
215 |
?>
|
|
|
216 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
217 |
<html><!-- written by steweb57 -->
|
|
|
218 |
<head>
|
344 |
richard |
219 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
318 |
richard |
220 |
<title><?php echo $l_ldap_title; ?></title>
|
|
|
221 |
<link rel="stylesheet" href="/css/style.css" type="text/css">
|
344 |
richard |
222 |
<link rel="stylesheet" href="/css/ldap.css" type="text/css">
|
318 |
richard |
223 |
<script language="javascript">
|
|
|
224 |
function testLdapActif(){
|
|
|
225 |
//List des ID des éléments à désactiver
|
|
|
226 |
var listToDisables = new Array("ldap_server","ldap_dn","ldap_filter","ldap_base_filter","ldap_user","ldap_password");
|
|
|
227 |
|
|
|
228 |
if (document.getElementById("auth_enable").value == "1"){
|
|
|
229 |
for (var i=0;i<listToDisables.length;i++){
|
|
|
230 |
document.getElementById(listToDisables[i]).style.backgroundColor ="#ffffff";
|
|
|
231 |
document.getElementById(listToDisables[i]).disabled = false;
|
|
|
232 |
}
|
|
|
233 |
} else {
|
|
|
234 |
for (var i=0;i<listToDisables.length;i++){
|
|
|
235 |
document.getElementById(listToDisables[i]).style.backgroundColor ="#c0c0c0";
|
|
|
236 |
document.getElementById(listToDisables[i]).disabled = true;
|
|
|
237 |
}
|
|
|
238 |
}
|
|
|
239 |
}
|
|
|
240 |
</script>
|
|
|
241 |
</head>
|
|
|
242 |
<body onLoad="testLdapActif();">
|
|
|
243 |
<table width="100%" border=0 cellspacing=0 cellpadding=0>
|
|
|
244 |
<tr><th><?php echo $l_ldap_legend; ?></th></tr>
|
|
|
245 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width=1 height=2></td></tr>
|
|
|
246 |
</table>
|
|
|
247 |
<table width="100%" border=1 cellspacing=0 cellpadding=1>
|
|
|
248 |
<tr><td valign="middle" align="left">
|
|
|
249 |
<form name="config_ldap" method="post" action="update_ldap.php">
|
|
|
250 |
<fieldset>
|
620 |
stephane |
251 |
<legend>
|
|
|
252 |
<?php
|
658 |
stephane |
253 |
echo $message;
|
|
|
254 |
$pos = strpos($ldap_server, "//");
|
|
|
255 |
if ($pos!==false){
|
|
|
256 |
$new_ldap_server = explode("//",$ldap_server); //pour discriminer le host et le protocole dans la notation "ldap://192.168.182.10" ou "ldaps://monldap.monentreperise.com"
|
|
|
257 |
} else {
|
659 |
richard |
258 |
$new_ldap_server = $ldap_server;
|
658 |
stephane |
259 |
}
|
775 |
stephane |
260 |
if (($ldap_on == "ldap") && (function_exists('ldap_connect'))){
|
620 |
stephane |
261 |
echo "<div align='center'><br>";
|
1395 |
richard |
262 |
|
|
|
263 |
switch(ldap_test($new_ldap_server, $ldap_identity, $ldap_password, $ldap_basedn, $ldap_filter)){
|
658 |
stephane |
264 |
case -2:
|
|
|
265 |
echo "<font color='red'>".$l_ldap_test_connection_failed."</font>";
|
|
|
266 |
break;
|
620 |
stephane |
267 |
case -1:
|
658 |
stephane |
268 |
echo "<font color='red'>".$l_ldap_test_network_failed."</font>";
|
620 |
stephane |
269 |
break;
|
|
|
270 |
case 0:
|
658 |
stephane |
271 |
echo "<font color='red'>".$l_ldap_test_bind_failed."</font>";
|
620 |
stephane |
272 |
break;
|
|
|
273 |
case 1:
|
658 |
stephane |
274 |
echo "<font color='green'>".$l_ldap_test_bind_ok."</font>";
|
1395 |
richard |
275 |
echo "<br>";
|
|
|
276 |
echo "<font color='red'>".$l_ldap_test_dn_failed."</font>";
|
|
|
277 |
break;
|
|
|
278 |
case 2:
|
|
|
279 |
echo "<font color='green'>".$l_ldap_test_bind_ok."</font>";
|
|
|
280 |
echo "<br>";
|
|
|
281 |
echo "<font color='green'>".$l_ldap_test_dn_ok."</font>";
|
620 |
stephane |
282 |
break;
|
|
|
283 |
default:
|
|
|
284 |
echo "LDAP error";
|
|
|
285 |
}
|
|
|
286 |
echo "<br><br></div>";
|
|
|
287 |
}
|
|
|
288 |
?>
|
|
|
289 |
</legend>
|
318 |
richard |
290 |
<dl>
|
|
|
291 |
<dt>
|
|
|
292 |
<label for="auth_enable"><?php echo $l_ldap_auth_enable_label; ?></label>
|
|
|
293 |
</dt>
|
|
|
294 |
<dd>
|
|
|
295 |
<select id="auth_enable" name="auth_enable" onchange="testLdapActif();">
|
776 |
stephane |
296 |
<?php if ($ldap_on == "ldap") {
|
318 |
richard |
297 |
echo "<option value=\"1\" selected=\"selected\">$l_ldap_YES</option>";
|
|
|
298 |
echo "<option value=\"0\">$l_ldap_NO</option>";
|
|
|
299 |
}else{
|
|
|
300 |
echo "<option value=\"1\">$l_ldap_YES</option>";
|
|
|
301 |
echo "<option value=\"0\" selected=\"selected\">$l_ldap_NO</option>";
|
|
|
302 |
}?>
|
|
|
303 |
</select>
|
|
|
304 |
</dd>
|
|
|
305 |
</dl>
|
|
|
306 |
<dl>
|
|
|
307 |
<dt>
|
|
|
308 |
<label for="ldap_server"><?php echo $l_ldap_server_label; ?></label>
|
344 |
richard |
309 |
<br>
|
318 |
richard |
310 |
<?php echo $l_ldap_server_text; ?></dt>
|
|
|
311 |
<dd>
|
344 |
richard |
312 |
<input id="ldap_server" size="40" name="ldap_server" value="<?php echo htmlspecialchars($ldap_server); ?>">
|
318 |
richard |
313 |
</dd>
|
|
|
314 |
</dl>
|
|
|
315 |
<dl>
|
|
|
316 |
<dt>
|
|
|
317 |
<label for="ldap_dn"><?php echo $l_ldap_base_dn_label; ?></label>
|
344 |
richard |
318 |
<br>
|
318 |
richard |
319 |
<?php echo $l_ldap_base_dn_text; ?></dt>
|
|
|
320 |
<dd>
|
344 |
richard |
321 |
<input id="ldap_dn" size="40" name="ldap_base_dn" value="<?php echo htmlspecialchars($ldap_basedn); ?>">
|
318 |
richard |
322 |
</dd>
|
|
|
323 |
</dl>
|
|
|
324 |
<dl>
|
|
|
325 |
<dt>
|
|
|
326 |
<label for="ldap_filter"><?php echo $l_ldap_filter_label; ?></label>
|
344 |
richard |
327 |
<br>
|
318 |
richard |
328 |
<?php echo $l_ldap_filter_text; ?></dt>
|
|
|
329 |
<dd>
|
344 |
richard |
330 |
<input id="ldap_filter" size="40" name="ldap_filter" value="<?php echo htmlspecialchars($ldap_filter); ?>">
|
318 |
richard |
331 |
</dd>
|
|
|
332 |
</dl>
|
|
|
333 |
<dl>
|
|
|
334 |
<dt>
|
|
|
335 |
<label for="ldap_base_filter"><?php echo $l_ldap_base_filter_label; ?></label>
|
344 |
richard |
336 |
<br>
|
318 |
richard |
337 |
<?php echo $l_ldap_base_filter_text; ?></dt>
|
|
|
338 |
<dd>
|
344 |
richard |
339 |
<input id="ldap_base_filter" size="40" name="ldap_base_filter" value="<?php echo htmlspecialchars($ldap_base_filter); ?>">
|
318 |
richard |
340 |
</dd>
|
|
|
341 |
</dl>
|
|
|
342 |
<dl>
|
|
|
343 |
<dt>
|
|
|
344 |
<label for="ldap_user"><?php echo $l_ldap_user_label; ?></label>
|
344 |
richard |
345 |
<br>
|
318 |
richard |
346 |
<?php echo $l_ldap_user_text; ?></dt>
|
|
|
347 |
<dd>
|
344 |
richard |
348 |
<input id="ldap_user" size="40" name="ldap_user" value="<?php echo htmlspecialchars($ldap_identity); ?>">
|
318 |
richard |
349 |
</dd>
|
|
|
350 |
</dl>
|
|
|
351 |
<dl>
|
|
|
352 |
<dt>
|
|
|
353 |
<label for="ldap_password"><?php echo $l_ldap_password_label; ?></label>
|
344 |
richard |
354 |
<br>
|
318 |
richard |
355 |
<?php echo $l_ldap_password_text; ?></dt>
|
|
|
356 |
<dd>
|
344 |
richard |
357 |
<input id="ldap_password" type="password" size="40" name="ldap_password" value="<?php echo htmlspecialchars($ldap_password);?>">
|
318 |
richard |
358 |
</dd>
|
|
|
359 |
</dl>
|
|
|
360 |
<p>
|
344 |
richard |
361 |
<input id="submit" type="submit" value="<?php echo $l_ldap_submit; ?>" name="submit">
|
318 |
richard |
362 |
|
344 |
richard |
363 |
<input id="reset" type="reset" value="<?php echo $l_ldap_reset; ?>" name="reset">
|
318 |
richard |
364 |
</p>
|
|
|
365 |
|
|
|
366 |
</fieldset>
|
|
|
367 |
</form>
|
344 |
richard |
368 |
<br>
|
318 |
richard |
369 |
</td></tr>
|
|
|
370 |
</table>
|
|
|
371 |
</body>
|
|
|
372 |
</html>
|