Mobility Hero Tutorials

Internal Captive Portal with automatic guest auth and redirect to welcome page - Jan 2014

Tutorial by 

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.

 

Enjoy your  auto-login Captive Portal :)

Version History
Revision #:
1 of 1
Last update:
‎02-26-2014 08:13 AM
Updated by:
 
Comments
MVP MVP

Hi Nesvik,

 

I have a friend that is looking to implement the above with one wrinkle, is there a way that guest users would have unique credentials? For instance, could the underlying guest username be incremented by a digit each time?

 

The person is not interested in Clearpass right now, which would also do the trick.

 

Thanks for your help!

 

-Mike

Search Airheads
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.