Deployment Guide

Table Of Contents
'label' => 'General failure',
'content' => '<span style=\'color:red\'>A problem has
occurred while trying to validate your userid & password.<br>Please contact
your system administrator.</span>',
),
14 =>
array (
'label' => 'Invalid third party parameters',
'content' => '<span style=\'color:red\'>Invalid third
party parameters.</span>',
),
15 =>
array (
'label' => 'Authentication in progress failure',
'content' => '<span style=\'color:red\'>Authentication is
in progress.</span>',
),
17 =>
array (
'label' => 'Max concurrent session failure',
'content' => '<span style=\'color:red\'>Login rejected
because the maximum number of concurrent sessions for this set of credentials
has been reached. Please try again later.</span>',
),
18 =>
array (
'label' => 'Identified session not found',
'content' => '<span style=\'color:red\'>Login failed
because could not find a session for the specified identifiers.</span>'
),
99 =>
array (
'label' => 'Timeout while trying to authorize a session',
'content' => '<span style=\'color:red\'>Login failed
because because the controller took too long to authorize the
session.</span>'
)
);
return (isset($errMsgList[$code])) ?
$errMsgList[$code][$content_type] :
"Unrecognized error code: ".$code;
}
// General purpose error reporting procedure.
function printError($errorMsg) {
header('Content-type: text/html; charset=iso-8859-1');
print
"<html>\n<head><title>Error</title></head><body>\n<p>\n$errorMsg\n</p>\n</bod
y>\n</html>\n";
}
// Use base64 url safe encode/decode when dealing
// with AES-encrypted strings.
// encode: '+'=>'-', '/' => '_' , '=' => '!'
function base64_url_encode($input) {
return strtr(base64_encode($input), '+/=', '-_!');
}
// Decode: '-'=>'+', '_' => '/' , '!' => '='
function base64_url_decode($input) {
return base64_decode(strtr($input, '-_!', '+/='));
}
// xml parsing functions
function my_xml2array($contents)
{
$xml_values = array();
if (! isset($contents)) {
PHP External Captive Portal, Controller’s Firewall
Friendly API common_utilities.php
Extreme Campus Controller Deployment Guide for version 5.46.03 205