I need you guys to add a checkbox somewhere to allow me to use an external login webpage. It should have a checkbox that says “redirect http/https login to external server?” and a form field that allows me to insert the http://some.login-site.com url.
Modify login page of the HotSpot servlet to redirect to the external authentication server. The external server should modify RADIUS database as needed
Here is an example of such a login page to put on the HotSpot router (it is redirecting to https://auth.example.com/login.php, replace with the actual address of an external authentication server):
<html>
<title>...</title>
<body>
<form name="redirect" action="https://auth.example.com/login.php" method="post">
<input type="hidden" name="mac" value="%mac%">
<input type="hidden" name="ip" value="%ip%">
<input type="hidden" name="user" value="%user%">
<input type="hidden" name="link-login" value="%link-login%">
<input type="hidden" name="link-orig" value="%link-orig%">
<input type="hidden" name="error" value="%error%">
</form>
<script language="JavaScript">
<!--
document.redirect.submit();
//-->
</script>
</body>
</html>