Hi,
I have a m0n0wall (1.22) with captive portal. The radius server is a
Multitech radius (free).
I use a syntax like:
username, auth-local, password="6576533e2652e287"
where password is a md5 from a script (a grabber from moodle elearning
system).
I do a captive portal page like this:
<script>
[...snip...]
function passmd5() {
document.login.auth_pass.value=hex_md5(document.login.pwd.value);
// alert (document.login.auth_pass.value);
return true;
}
</script>
<form method="post" action="$PORTAL_ACTION$" name="login">
<input name="auth_user" type="text">
<input name="pwd" type="password">
<input type="hidden" name="auth_pass">
<input name="accept" type="submit" value="Accedi"
onClick="passmd5();true">
</form>
the script calcs the md5 function (the alert says a correct value, the
same stored in Users file of radius server).
But I get captive portal username/password wrong's page.
May you help me?
Thanks in advance.
v. |