MSM7xx Controllers Configuration Guide v6.4.0

RADIUS
GetMsChapV2Failed()
Displays the MS CHAP V2 error string received in the last RADIUS Reject or RADIUS Accept
packet for the user. This function is only supported if you select MSCHAP V2 as the authentication
scheme on the controller (Controller >> Authentication > RADIUS profiles page). The RADIUS
server must also support this feature. For a list of possible return values see RFC 2759.
This is not a normal return value. It cannot be assigned to an ASP variable, and is inserted
directly into the HTML page.
GetRadiusNasId()
Returns the NAS ID configured for RADIUS Profile on the controller. This can be used to identify
the controller that authenticated a user. For an example of how this function is used, see
GetNasAddress().
This is not a normal return value. It cannot be assigned to an ASP variable, and is inserted
directly into the HTML page.
GetRadiusReplyMessage()
Displays the reply message content received inside the last RADIUS Request or RADIUS Accept
packet for the user. The RADIUS server must be configured to support this feature. The information
contained in the returned string depends on the configuration of the RADIUS server.
This is not a normal return value. It cannot be assigned to an ASP variable, and is inserted
directly into the HTML page.
GetNasAddress()
Returns the fully-qualified domain name of the controller as is specified in the currently loaded
SSL certificate.
For example, in certain instances you may want users to register for an account before they
log in. To accomplish this you could modify the Login page by adding a register button. This
redirects the users browser to a registration Web server where they can set up their account.
(This page must be made accessible to non-authenticated users using the appropriate access
list rule.)
To avoid having the user login once registration is complete, the registration Web server can
send the user back to the controller using a special URL that automatically logs the user into
the public access interface.
This is not a normal return value. It cannot be assigned to an ASP variable, and is inserted
directly into the HTML page.
Example
Assuming the registration server is 192.169.30.1, the register button code on the Login page
might look something like this:
<FORM><INPUT onclick="javascript:window.location='https://192.168.30.1/
demo-php/register.php?
NASip=<%GetNasAddress();%>&NASid=<%GetRadiusNasId();%>';"
type=button value="Click Here to Register">
</FORM>
The NAS ID and NAS address are required when the user is redirected back to the controller
after registration. The code on the registration Web page would look something like this:
// Registering user information in the backend database
RegisterUser($username,
$firstname,
$lastname,
$company,
$title,
$phone,
$email,
494 Working with RADIUS attributes