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

Table Of Contents
* /
+ -
Association Rules:
Following are the association rules in decreasing order:
+ - left-to-right
* / left-to-right
- (negation) non-associative
The following example illustrates the use of arithmetic expressions.
Example 27-6 Using arithmetic expressions
Example 1
insert Xvalue = Xvalue + 10
insert Nas-Port = Nas-Port + Xvalue[0]
modify Xvalue = count( Framed-IP-Address[*]) + Tunnel-Type
modify Acct-Session-Time = ( Session-Timeout + Idle-Timeout ) * (Xvalue 10 )
if( Acct-Session-Time + 10 = Session-Timeout + Idle-Timeout )
{
modify Acct-Session-Time = Acct-Session-Time / 10
}
if( count( Login-IP-Host ) * Login-TCP-Port != Xvalue * 10 )
{
insert Login-TCP-Port = Login-TCP-Port + 1
}
Supported Boolean Operators
Table 27-7 lists the operators you can use to create an expression with various
combinations of A-V pairs.
Table 27-7 Supported Boolean Operators
DescriptionOperator
Equal toThe = operator
Not equal toThe != operator
Less thanThe < operator
Less than or equal toThe <= operator
Greater thanThe > operator
Greater than or equal toThe >= operator
Logical andThe && operator
Logical orThe || operator
Logical notThe ! operator
You can also use parentheses to nest expressions.
432 Customizing the HP-UX AAA Server Using Policies