260| Captive Port al Authentication DellPowerConnect W- Series ArubaOS 6.2 | User Guide
Repeat steps 1 and2 until you are satisfied with your page.
3. Once you have a page you find acceptable, click on View CaptivePor tal one more time to display your login
page.From yo urbrowser, choose "View->Source"or i ts equivalent. Yours ystem will display the HTML source for
the captive portal page. Save this source as a file on yo urlocal syst em.
4. Open the file that yo u saved in step 3 on page 260, using a standard text editor, and make the following changes:
a. Fix the characterset. The default <HEAD>...</HEAD> section of the file will appear as:
<head>
<title>Portal Login</title>
<link href="default1/styles.css" rel="stylesheet" media="screen" type="text/css" />
<script language="javascript" type="text/javascript">
function showPolicy() {
win = window.open("/auth/acceptableusepolicy.html", "policy", "height=550,
width=550,scrollbars=1");
}
</script>
</head>
In ordert o control the characterset that t hebrowser will use to show the text wi th,yo uw illneed to insert
the followingline inside the <HEAD >...</HEAD>element:
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"/>
Replace the "Shift_JIS"part of the above line with the character set that is used by your system. In theory,
any characterencoding that has been registered with IANA can be used,but you must ensure that any text
you enter uses this character set and that your target browsers support the required character set encoding.
b. The final <HEAD >...</HEAD> portion of the document should look similar to this:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"/>
<title>Portal Login</title>
<link href="default1/styles.css" rel="stylesheet" media="screen" type="text/css" />
<script language="javascript" type="text/javascript">
function showPolicy() {
win = window.open("/auth/acceptableusepolicy.html", "policy", "height=550,width=550,
scrollbars=1");
}
</script>
</head>
c. Fix references:If you have used the built-in preferences,you will need to update the reference for the logo
image and the CSSs tyle sheet.
To update the CSSreference, search the text for "<linkhref" and update the referenceto i nclude"/auth/" in
front of the reference.The original link shouldlook similar to the following:
<link href="default1/styles.css" rel="stylesheet" media="screen" type="text/css" />
This should be replacedwith a link like the following:
<link href="/auth/default1/styles.css" rel="stylesheet" media="screen" type="text/css" />
The easiest way to update thei magereference is to search for"src" using your text editor and updatingthe
referenceto include "/auth/" in fronto ft hei magefile. The original link should look similart o the following:
<img src="default1/logo.gif"/>
This should be replacedwith a link like this:
<img src="/auth/default1/logo.gif"/>
d. Insert j avascript to handle errorcases: