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

Table 90 Examples Illustrating the Use of the insert Command (continued)
ResultCommandAttributes in the Request
NAS-IP-Address = "2.3.4.5"
Reply-Message = "message#2"
Reply-Message = "message#2"
NAS-IP-Address = "2.3.4.5"
NAS-Port = 2
Reply-Message = "a new
insert Reply-Message[0] =
"a new message"
NAS-Port = 2
Reply-Message = "message#1"
message"
Reply-Message = "message#2" Reply-Message = "message#1"
NAS-IP-Address = "2.3.4.5"
Reply-Message = "message#2"
NAS-IP-Address = "2.3.4.5"
Reply-Message = "Hello,
world!"
insert Reply-Message[begin]
= "Hello, world!"
NAS-Port = 2
NAS-IP-Address = "2.3.4.5"
NAS-Port = 2
NAS-IP-Address = "2.3.4.5"
NAS-Port = 2
Xvalue = 10
Xvalue = 12
insert Xvalue = Nas-Port +
20 - Xvalue[0]
NAS-Port = 2
Xvalue = 10
Tunnel-Password = :2:"abc"
Tunnel-Password = :3:"def"
insert Tunnel-Password =
:3:"def"
Tunnel-Password = :2:"abc"
Reply-Message = "hello"
Reply-Message = "def"
insert Reply-Message =
:3:"def"
Reply-Message = "hello"
Reply-Message = "abc"
NAS-Port = 1
insert NAS-Port = count(
Reply-Message[*] )
Reply-Message = "abc"
Idle-Timeout = 10
Xvalue = 20
Session-Timeout = 200
insert Session-Timeout =
Idle-Timeout * Xvalue
Idle-Timeout = 10
Xvalue = 20
For information on attribute functions (such as the count attribute function), see Attribute Functions
(page 310).
The modify Command
Syntax
modify <attr-spec> = <value-expr>
Parameters
<attr-spec>: The <attr-spec> is an attribute specification. For more information on
specifying attributes, see Attribute Specifications” (page 308).
<value-expr>: The <value-expr> is a value expression. It can be a value specification,
an attribute specification, an arithmetic expression, or an attribute function. For more
information, see Attribute Specifications” (page 308), Arithmetic Expressions” (page 316),
“Value Types” (page 315), and Attribute Functions” (page 310).
NOTE: The types of <attr-spec> and <value-expr> must be compatible. For more
information on compatibility, see Type Compatibility” (page 319).
Operation
The modify command modifies <attr-spec> to obtain the value <value-expr>.
NOTE: If <attr-spec> refers to a tagged attribute (tag-int or tag-str) and <value-spec> is
a tagged value, the tag of <attr-spec> is not modified. The value of the <attr-spec>
parameter is only modified.
304 Customizing the HP-UX AAA Server Using Policies