yb@secnet.ua wrote:
Can I do this without captive portal splash page?
I need just redirection to website, while client is starting using my network. After redirection client should have access to any website.
You need a Captive Portal Splash page to do this, because it has to log a user in with Javascript and that is what (1) redirects the user to the "welcome" page in your Captive Portal authentication profile and (2) changes his role to something that is open. Here is what happens:
1. Create a username and password in the controller's internal database for anonymous users
2. Create a Captive Portal with custom HTML where the Welcome Page parameter has the page you want users to be redirected to
3. User associates to SSID in "logon" role that redirects user to custom HTML, which logs user in, in the background
4. The Captive Portal authentication profile Welcome parameter will redirect user to desired URL and the javascript authenticates users to force him into an "open" role so that the user can start browsing.
My co-worker forwarded an HTML example where the username and password is "test" and "user123":
<html>
<head>
</head>
<form name="loadportal" FORM method="post" ACTION="/auth/index.html/u">
<INPUT type="hidden" name="user" accesskey="u" SIZE="25" VALUE="test">
<INPUT type="hidden" name="password" accesskey="p" SIZE="25" VALUE="user123">
<input type="submit" name="inputme" value="Submit" style="visibility:hidden">
</form>
<script>
window.onload = function()
{
document.loadportal.submit();
};
</script>
</html>