Whenthe controller detects an error situation, it will pass the user's page a variablec alled"errmsg" with a
valueof what the error is in English. Currently,only "Authentication Failed" is supported as a valid error
message.
To localize the authentication failuremessage, replace the following text (it is just a few lines below the
<body> tag):
<div id="errorbox" style="display: none;">
</div>
with the script below. You will needto translatet he"Authenticati on Failed"error message into your local
languageand add it into the script below whereit states: localized_msg="...":
<script>
{
var q = window.location.search;
var errmsg = null;
if (q && q.length > 1) {
q = q.substring(1).split(/[=&]/);
for (var i = 0; i < q.length - 1; i += 2) {
if (q[i] == "errmsg") {
errmsg = unescape(q[i + 1]);
break;
}
}
}
if (errmsg && errmsg.length > 0) {
switch(errmsg) {
case "Authentication Failed":
localized_msg="Authentication Failed";
break;
default:
localised_msg=errmsg;
break;
}
errmsg = "<div id='errorbox'>\n" + localised_msg + "\n</div>\n";
document.write(errmsg);
};
}
</script>
e. Translate the web page text. Once you have made the changesas above, you only need to translate the rest of
the text that appears on the page.The exact text that appears will depend on the controllerset tings whenyo u
originallyvi ewed the captive portal. You will need to translate all relevant text such as "REGISTERED
USER", "USERNAME", "PASSWORD", the value=""part of the INPUT type="submit"butto n andall other
text. Ensuret hat the characterset you use to translatei nto is the same as you have selected in parti ) above.
Feelfree to edit the HTML as you go if you are familiar with HTML.
5. After saving the changes made in step 4 above, upload the file to the controllerusing the
Configuration > Management >Captive Portal > Upload Custom Login Pagessect ion of the WebUI.
Choose the captive portal profile fromthe drop-down menu. Browse your local computerfor the file you saved.
For Page Type, select “Captive Portal Login”. E nsurethat the "Revert to factory default settings" box is NOT
checkedand click Apply. This will upload the file to the controller andset the captive portal profilet o use this
page as the redirection page.
In order to check that your site is operating correctly, go back to the "Customize Logi nP age"and click on "Vi ew
Captive Portal" to view the page you have uploaded.Check that your browser has automatically detected the
characterset andt hat your text is not garbled.
DellPowerConnect W- Series ArubaOS 6.2 | UserGuide CaptivePortal Authentication |261