Controller Based WLANs

 View Only
last person joined: one year ago 

APs, Controllers, VIA

How to create an auto-login CP page 

Jun 27, 2014 07:36 PM

In some cases, it is desirable to provide a guest network where the user is automatically logged in as a guest and redirected to the welcome page. This provides a user-friendly way of displaying a welcome page to the user when he connects even if you do not wish to have them do a manual log in to the guest network.

 To accomplish this task, we will create a custom login page for the captive portal profile.

The following HTML code is saved to a file with the ".html" extension. This could be anything you like, for example: "autologin.html"

The HTML code will automatically login the user as a guest. If for some reason the automatic login fails, the page will provide a button for manual login.

 

Code: 

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC"-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="refresh" content="0; url=/auth/index.html/u?cmd=authenticate&email=user@company.com">
</head>
<body>
<form name="form1" method="post" action="/auth/index.html/u">
<span class="bodytext">
<input type="hidden" id="email" name="email" type="text" value="user@company.com" class="text" accesskey="e" />
<input type="hidden" name="cmd" value="authenticate" />
<input type="submit" name="Login" value="Click here if you are not automatically logged in to the network" class="button" />
</span>
</form>
</div>
</body>
</html>

 

Upload this file in "Management > Captive Portal > Upload Login Pages". Choose page type: Captive Portal Login (top-level).

Remember to choose the correct Captive portal profile before uploading!

 

When this file is uploaded, edit the Captive Portal Authentication Profile to at least contain the following parameters:

guest-logon
login-page "/upload/custom/cp-profile-name/autologin.html"
welcome-page "www.your-welcome-page.com"

Edit the login-page parameter to contain your profile instead of "cp-profile-name" in the example.

Edit the welcome-page parameter to contain your welcome-page URL instead of "www.your-welcome-page.com" in the example.

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.