10,7 → 10,7 |
# notice and this permission notice is included in all copies or |
# substantial portions of the software. |
|
$organisme = ""; |
$organisme = "rexy"; |
# Redirects from CoovaChilli (chilli daemon) : |
# Response to login: |
# success : if login successful |
25,15 → 25,11 |
# Default : it was not a form request |
|
# Shared secret used to encrypt challenge with radius. |
$uamsecret = ""; |
$uamsecret = "PJSafPdA"; |
|
# URL loaded after success authenticates (let blank for browser defaults) |
$adminurl = ""; |
|
# # Uncomment the following line if you want to use ordinary user-password |
# for radius authentication. Must be used together with $uamsecret. |
$userpassword = 1; |
|
# Our own path |
$loginpath = $_SERVER['PHP_SELF']; |
|
71,6 → 67,10 |
$R_reply_3 = "You try to connect outside of your allowed timespan"; |
$R_reply_4 = "your account expired"; |
$R_reply_5 = "You have reached the maximum number of simultaneous logins"; |
$R_ca_1 = "How integrate the ALCASAR C.A"; |
$R_ca_2 = "certificate"; |
$R_ca_3 = "in your web browser?"; |
$R_ca_4 = "<help>"; |
} |
else if($Language == 'de'){ |
$R_ChilliError = "Die Authentifizierung ist erfolgreich durch die Nutzung des Portals erfolgt."; |
101,6 → 101,10 |
$R_reply_3 = "You try to connect outside of your allowed timespan"; |
$R_reply_4 = "your account expired"; |
$R_reply_5 = "You have reached the maximum number of simultaneous logins"; |
$R_ca_1 = "How integrate the ALCASAR C.A"; |
$R_ca_2 = "certificate"; |
$R_ca_3 = "in your web browser?"; |
$R_ca_4 = "<help>"; |
} |
else if($Language == 'nl'){ |
$R_ChilliError = "De authenticatie moet een succes worden via de captive portal dienst."; |
131,6 → 135,10 |
$R_reply_3 = "You try to connect outside of your allowed timespan"; |
$R_reply_4 = "your account expired"; |
$R_reply_5 = "You have reached the maximum number of simultaneous logins"; |
$R_ca_1 = "How integrate the ALCASAR C.A"; |
$R_ca_2 = "certificate"; |
$R_ca_3 = "in your web browser?"; |
$R_ca_4 = "<help>"; |
} |
else if($Language == 'en'){ |
$R_ChilliError = "The authentication must be successful through the captive portal service."; |
161,6 → 169,10 |
$R_reply_3 = "You try to connect outside of your allowed timespan"; |
$R_reply_4 = "your account expired"; |
$R_reply_5 = "You have reached the maximum number of simultaneous logins"; |
$R_ca_1 = "Integrate the ALCASAR C.A"; |
$R_ca_2 = "certificate"; |
$R_ca_3 = "in your web browser"; |
$R_ca_4 = "-help-"; |
} |
else{ |
$R_ChilliError = "L'authentification doit être réussie au travers du service du portail captif."; |
191,6 → 203,10 |
$R_reply_3 = "Vous tentez de vous connecter en dehors de votre période autorisée"; |
$R_reply_4 = "Votre compte a expiré"; |
$R_reply_5 = "Vous avez atteint le nombre maximum de connexions simultanées"; |
$R_ca_1 = "Intégrer le "; |
$R_ca_2 = "certificat"; |
$R_ca_3 = "de l'A.C d'ALCASAR dans votre navigateur web"; |
$R_ca_4 = "-aide-"; |
} |
|
# Make sure that the form parameters are clean |
260,11 → 276,7 |
# If attempt to login |
if ("$button" == "$R_boutonO") { |
$hexchal = pack ("H32", $challenge); |
if ($uamsecret) { |
$newchal = pack ("H*", md5($hexchal . $uamsecret)); |
} else { |
$newchal = $hexchal; |
} |
$newchal = pack ("H*", md5($hexchal . $uamsecret)); |
$response = md5("\0" . $password . $newchal); |
$newpwd = pack("a32", $password); |
$pappassword = implode ("", unpack("H32", ($newpwd ^ $newchal))); |
274,13 → 286,9 |
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> |
<title>$R_loggingin</title> |
<meta http-equiv=\"Cache-control\" content=\"no-cache\"> |
<meta http-equiv=\"Pragma\" content=\"no-cache\">"; |
if (isset($uamsecret) && isset($userpassword)) { |
echo " <meta http-equiv=\"refresh\" content=\"0;url=http://$uamip:$uamport/logon?username=$username&password=$pappassword&userurl=$userurl\">"; |
} else { |
echo " <meta http-equiv=\"refresh\" content=\"0;url=http://$uamip:$uamport/logon?username=$username&response=$response&userurl=$userurl\">"; |
} |
echo "</head> |
<meta http-equiv=\"Pragma\" content=\"no-cache\"> |
<meta http-equiv=\"refresh\" content=\"0;url=http://$uamip:$uamport/logon?username=$username&password=$pappassword&userurl=$userurl\"> |
</head> |
<body bgColor = 'white'> |
<h1 style=\"text-align: center;\">$R_loggingin</h1> |
<center> |
481,12 → 489,14 |
<td align=\"left\" colspan=\"4\"><b> |
<li> |
$R_loggedin_stringl2</li> |
<li> |
<li> |
$R_loggedin_stringl3</li> |
<li> |
<li> |
$R_loggedin_stringl4</li> |
<li> |
<li> |
$R_loggedin_stringl5</li> |
<hr> |
$R_ca_1 <a href=\"/certs/certificat_alcasar_ca.pem\">$R_ca_2</a> $R_ca_3 <a href=\"/certs/certificat_alcasar_ca.pem\">$R_ca_4</a> |
</b></td> |
</tr> |
</table> |