HP-UX AAA Server A.08.00.01 Administrator's Guide

Example 27-2 Examples Illustrating the Use of the if Command
Example 1
The following if statement:
if ( Session-Limit[1] < 30 )
{
modify Session-Limit[1] = 30
}
else
{
if ( Session-Limit[1] > 240 )
{
modify Session-Limit[1] = 240
}
}
With the following input:
Session-Limit[0] = 10
Session-Limit[1] = 300
Results in:
Session-Limit[0] = 10
Session-Limit[1] = 240
Example 2
The following if statement:
if ( (NAS-IP-Address = "192.168.1.2") &&
((NAS-Identifier = .jack.) || (Port-Limit > 20)))
{
exit "NAK"
}
With the following input:
NAS-IP-Address = 192.168.1.2
NAS-Identifier = fred
Port-Limit = 23
Results in:
A NAK event is returned to the FSM. Depending on the FSM, the request may be
rejected.
Attribute Specifications
You can use the following keywords to specify an attribute:
Attribute Names.”
Vendor Names.”
Attribute Instance Specifications.”
No Instance Specification.”
Defining a Policy in a Decision File 415