337| Captive Portal Authentication AOS-W 6.5.3.x| User Guide
that you uploaded, or you can change the Welcome page in the captive portal authentication profile in the
WebUI.
An example that will create the same page as displayed in Figure 50 is shown below. The part in red will redirect
the user to the web page you originally setup. For this to work, please follow the procedure described above in
this document.
:
<html>
<head>
<script>
{
function readCookie(name)
{
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++)
{
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring
(nameEQ.length,c.length);
}
return null;
}
var cookieval = readCookie('url');
if (cookieval.length>0) document.write("<meta http-equiv=\"refresh\"
content=\"2;url=http://"+cookieval+"\""+">");
}
</script>
</head>
<body bgcolor=white text=000000>
<font face="Verdana, Arial, Helvetica, sans-serif" size=+1>
<b>User Authenticated </b>
<p>In 2 seconds you will be automatically redirected to your original web page</p>
<p> Press control-d to bookmark this page.</p>
<FORM ACTION="/auth/logout.html">
<INPUT type="submit" name="logout" value="Logout">
</FORM>
</font>
</body>
</html>
Customizing Authentication Reply-Message to Captive Portal Users
In AOS-W 6.4.x and earlier versions, captive portal authentication displayed pre-defined strings such
Authentication Successful and Authentication Failed to users in the log-in page. So, response sent by
RADIUS server through the Reply-Message was not forwarded by Authentication module to the Captive
Portal module.
AOS-W 6.5 introduces the support for customizing authentication Reply-Message to captive portal users in the
log-in page for better user experience. The purpose behind the Reply-Message is to return appropriate
information to the captive portal system.
For example, ClearPass can send a RADIUS-reject for various reasons, such as, authentication failed, bandwidth
limit exceeded, max. session reached, max. devices used. In AOS-W 6.4.x, the user returns Authentication
failed message for all the reasons. In AOS-W 6.5, ClearPass can now include the reason why it is rejecting in the