Dell 6.2 Server User Manual


 
258 | CaptivePortalAuthentication DellPowerConnectW-SeriesArubaOS6.2 | User Guide
Basic HTML Example
<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM method="post" autocomplete="off" ACTION="/auth/index.html/u">
Username:<BR>
<INPUT type="text" name="user" accesskey="u" SIZE="25" VALUE="">
<BR>
Password:<BR>
<INPUT type="password" name="password" accesskey="p" SIZE="25"
VALUE="">
<BR>
<INPUT type="submit">
</FORM>
</BODY>
</HTML>
You can find a more advanced example simply by using your browser’s "view-source" function while viewing the
default captive portal page.
Installing a New Captive Portal Page
You can install the captive portal page by using the Maintenance function of the WebUI.
Log into the WebUI and navigate to Configuration > Management >Captive Portal > Upload Custom Login
Pages
.
This page lets you upload your own files to the controller. There are different page types that you can choose:
l Captive Portal Login (top level): This type uploads the file into the controller and sets the captive portal page to
reference the file that you are uploading. Use with caution on a production controller as this takes effect
immediately.
l Captive Portal Welcome Page: This type uploads the file that appears after logon and before redirection to the
web URL. The display of the welcome page can be disabled or enabled in the captive portal profile.
l Content: The content page type allows you to upload all miscellaneous files that you need to reference from your
main captive portal login page. This can be used for images, scripts or any other file that you need to reference.
These files are uploaded into the same directory as the top level captive portal page and thus all files can be
referenced relatively.
Uploaded files can be referenced using:
https://<controller_IP>/upload/custom/<CP-Profile-Name>/<file>
Displaying Authentication Error Messages
This section contains a script that performs the following tasks:
l When the user is redirected to the main captive portal login when there is authentication failure, the redirect
URL includes a query parameter "errmsg" which java script can extract and display.
l Store the originally requested URL in a cookie so that once the user has authenticated, they are automatically
redirected to its original page. Note that for this feature to work, you need ArubaOS release 2.4.2.0 or later. If you
don't want this feature, delete the part of the script shown in red.
<script>