HP-UX AAA Server A.08.01 administrator's guide (T1428-90072, May 2010)

Table Of Contents
Examples
Log Warning This user should not come in through this NAS,
User-Name,
NAS-IP-Address
Results in the following logs in the logfile:
<date>: decisionfile://request-ingress.grp(line 100, character 1):
This user should not come in through this NAS,
RADIUS:User-Name[last]="test_user",
RADIUS:NAS-IP-Address[last]=15.146.225.145
The if Command
Syntax
if (<bool-expr> {<action-list1>} else {<action-list2>}
if (<bool-expr> {<action-list>}
Parameters
<bool-expr>: The <bool-expr> parameter is a Boolean expression.
<actionlist1> and <actionlist2>: The <actionlist1> and <actionlist2> are sequences of
action commands that can include additional if commands, nested to an arbitrary
depth. When the else clause is omitted, <action-list2> can be considered as an
empty sequence of action commands.
Operation
The if command first evaluates the boolean expression <bool-expr>. If <bool-expr>
evaluates to true, the sequence of action commands <action-list1> is executed. If
<bool-expr> evaluates to false and an else clause is present, the sequence of action
commands <action-list2> is executed.
420 Customizing the HP-UX AAA Server Using Policies