Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
# change user password on ALACASAR NAC
|
2 |
# change user password on ALACASAR NAC
|
3 |
# Copyright (C) 2003, 2004 Mondru AB.
|
3 |
# Copyright (C) 2003, 2004 Mondru AB.
|
4 |
# Copyright (C) 2008-20017 ANGEL95 & REXY
|
4 |
# Copyright (C) 2008-20017 ANGEL95 & REXY
|
5 |
|
5 |
|
6 |
|
- |
|
7 |
|
- |
|
8 |
require('/etc/freeradius-web/config.php');
|
6 |
require('/etc/freeradius-web/config.php');
|
9 |
|
7 |
|
10 |
$current_page = $_SERVER['PHP_SELF'];
|
8 |
$current_page = $_SERVER['PHP_SELF'];
|
11 |
|
9 |
|
12 |
# Choice of language
|
10 |
# Choice of language
|
Line 119... |
Line 117... |
119 |
$R_form_result1 = "Your password has been successfuly changed";
|
117 |
$R_form_result1 = "Your password has been successfuly changed";
|
120 |
$R_form_result2 = "Error when trying to change password";
|
118 |
$R_form_result2 = "Error when trying to change password";
|
121 |
$R_retour = "ALCASAR home page";
|
119 |
$R_retour = "ALCASAR home page";
|
122 |
}
|
120 |
}
|
123 |
echo "
|
121 |
echo "
|
- |
|
122 |
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
|
124 |
<html>
|
123 |
<html>
|
125 |
<head>
|
124 |
<head>
|
126 |
<title>$R_title</title>
|
125 |
<title>$R_title</title>
|
127 |
<meta http-equiv=\"Cache-control\" content=\"no-cache\">
|
126 |
<meta http-equiv=\"Cache-control\" content=\"no-cache\">
|
128 |
<meta http-equiv=\"Pragma\" content=\"no-cache\">
|
127 |
<meta http-equiv=\"Pragma\" content=\"no-cache\">
|
Line 131... |
Line 130... |
131 |
<link type=\"text/css\" href=\"../css/pwdmeter.css\" media=\"screen\" rel=\"stylesheet\" />
|
130 |
<link type=\"text/css\" href=\"../css/pwdmeter.css\" media=\"screen\" rel=\"stylesheet\" />
|
132 |
<!--[if lt IE 7]>
|
131 |
<!--[if lt IE 7]>
|
133 |
<link type=\"text/css\" href=\"../css/ie.css\" media=\"screen\" rel=\"stylesheet\" />
|
132 |
<link type=\"text/css\" href=\"../css/ie.css\" media=\"screen\" rel=\"stylesheet\" />
|
134 |
<![endif]-->
|
133 |
<![endif]-->
|
135 |
<script type=\"text/javascript\" src=\"js/pwdmeter.js\" language=\"javascript\"></script>
|
134 |
<script type=\"text/javascript\" src=\"js/pwdmeter.js\" language=\"javascript\"></script>
|
136 |
</head>
|
- |
|
137 |
<script type=\"text/javascript\">
|
135 |
<script type=\"text/javascript\">
|
138 |
function valoriserDiv5(param){
|
136 |
function valoriserDiv5(param){
|
139 |
document.getElementById(\"box_info\").innerHTML = param.innerHTML;
|
137 |
document.getElementById(\"box_info\").innerHTML = param.innerHTML;
|
140 |
}
|
138 |
}
|
141 |
</script>
|
139 |
</script>
|
- |
|
140 |
</head>
|
142 |
<body onload=\"valoriserDiv5(text_conn);\">
|
141 |
<body onload=\"valoriserDiv5(text_conn);\">
|
143 |
|
- |
|
144 |
<div id=\"cadre_titre\" class=\"titre_controle\">
|
142 |
<div id=\"cadre_titre\" class=\"titre_controle\">
|
145 |
<p id=\"acces_controle\" class=\"titre_controle\">$R_title</p>
|
143 |
<p id=\"acces_controle\" class=\"titre_controle\">$R_title</p>
|
146 |
<div id=\"boite_logo\">
|
144 |
<div id=\"boite_logo\">
|
147 |
<img src=\"/images/organisme.png\">
|
145 |
<img src=\"/images/organisme.png\">
|
148 |
</div>
|
146 |
</div>
|
149 |
</div>
|
147 |
</div>
|
150 |
<div id=\"contenu_acces\">
|
148 |
<div id=\"contenu_acces\">
|
151 |
<form name=\"master\" action=\"$current_page\" method=\"post\">
|
149 |
<form name=\"master\" action=\"$current_page\" method=\"post\">
|
152 |
<input type=hidden name=action value=checkpass>
|
150 |
<input type=hidden name=action value=checkpass>
|
153 |
<table id=\"champs_pass\">
|
151 |
<table id=\"champs_pass\" border=\"1\">
|
154 |
<tr>
|
152 |
<tr>
|
155 |
<td class=\"first_item\">$R_form_l1</td>
|
153 |
<td class=\"first_item\">$R_form_l1</td>
|
156 |
<td><input type=\"text\" name=\"login\" value=\"\" label=\"test\"></td>
|
154 |
<td><input type=\"text\" name=\"login\" value=\"\" label=\"test\"></td>
|
157 |
</tr>
|
155 |
</tr>
|
158 |
<tr>
|
156 |
<tr>
|
Line 181... |
Line 179... |
181 |
</tr>
|
179 |
</tr>
|
182 |
<tr>
|
180 |
<tr>
|
183 |
<td class=\"first_item\">$R_form_l4</td>
|
181 |
<td class=\"first_item\">$R_form_l4</td>
|
184 |
<td><input type=\"password\" name=\"newpasswd2\" value=\"\"></td>
|
182 |
<td><input type=\"password\" name=\"newpasswd2\" value=\"\"></td>
|
185 |
</tr>
|
183 |
</tr>
|
186 |
</table>
|
184 |
<tr>
|
- |
|
185 |
<td colspan=\"2\" id=\"lien_pass\">
|
187 |
<input type=\"submit\" class=\"btn_form\" id=\"btn_pass\" value=\"$R_form_button_valid\">
|
186 |
<input type=\"submit\" class=\"btn_form\" id=\"btn_pass\" value=\"$R_form_button_valid\">
|
188 |
<input type=\"button\" class=\"btn_form\" id=\"btn_retour\" value=\"$R_form_button_retour\" onclick=\"location.replace('http://alcasar');\">
|
187 |
<input type=\"button\" class=\"btn_form\" id=\"btn_retour\" value=\"$R_form_button_retour\" onclick=\"location.replace('http://alcasar');\">
|
- |
|
188 |
</td>
|
- |
|
189 |
</tr>
|
- |
|
190 |
</table>
|
189 |
</div>
|
191 |
</div>
|
190 |
</div>
|
192 |
</div>
|
191 |
<div id=\"info_pass\">
|
193 |
<div id=\"info_pass\">
|
192 |
<table id=\"tablePwdStatus\" cellpadding=\"5\" cellspacing=\"1\" border=\"0\">
|
194 |
<table id=\"tablePwdStatus\" cellpadding=\"5\" cellspacing=\"1\" border=\"0\">
|
193 |
<tr>
|
195 |
<tr>
|
Line 358... |
Line 360... |
358 |
• Final score is a cumulative result of all bonuses minus deductions.<br />
|
360 |
• Final score is a cumulative result of all bonuses minus deductions.<br />
|
359 |
• Final score is capped with a minimum of 0 and a maximum of 100.<br />
|
361 |
• Final score is capped with a minimum of 0 and a maximum of 100.<br />
|
360 |
• Score and Complexity ratings are not conditional on meeting minimum requirements.<br />
|
362 |
• Score and Complexity ratings are not conditional on meeting minimum requirements.<br />
|
361 |
</td>
|
363 |
</td>
|
362 |
</tr>
|
364 |
</tr>
|
363 |
<tr>
|
- |
|
364 |
<th>DISCLAIMER</th>
|
- |
|
365 |
</tr>
|
- |
|
366 |
<tr>
|
- |
|
367 |
<td>
|
- |
|
368 |
<p>This application is designed to assess the strength of password strings. The instantaneous visual feedback provides the user a means to improve the strength of their passwords, with a hard focus on breaking the typical bad habits of faulty password formulation. Since no official weighting system exists, we created our own formulas to assess the overall strength of a given password. Please note, that this application does not utilize the typical \"days-to-crack\" approach for strength determination. We have found that particular system to be severely lacking and unreliable for real-world scenarios. This application is neither perfect nor foolproof, and should only be utilized as a loose guide in determining methods for improving the password creation process. </p>
|
- |
|
369 |
</td>
|
- |
|
370 |
</tr>
|
- |
|
371 |
</table>
|
365 |
</table>
|
- |
|
366 |
</div>
|
372 |
";
|
367 |
";
|
373 |
|
368 |
|
374 |
if (is_file("sql/drivers/$config[sql_type]/functions.php"))
|
369 |
if (is_file("sql/drivers/$config[sql_type]/functions.php"))
|
375 |
include_once("sql/drivers/$config[sql_type]/functions.php");
|
370 |
include_once("sql/drivers/$config[sql_type]/functions.php");
|
376 |
else{
|
371 |
else{
|