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

Table 27-2 Behavior of the insert Command in Various Scenarios
ThenIf
the attribute is inserted at the end of the listThe <attr-spec> parameter refers to an instance that
is not present
the tag for the inserted attribute is set to 0The <attr-spec> parameter refers to a tagged attribute
(tag-int or tag-str) and <value-spec> is not a tagged
value
the tag is ignoredThe <attr-spec> parameter refers to an attribute that
is not tagged and <value-spec> is a tagged value
Examples
Table 27-3 discusses some examples illustrating the use of the insert command.
Table 27-3 Examples Illustrating the Use of the insert Command
ResultCommandAttributes in the Request
NAS-Port = 2
Reply-Message =
insert Reply-Message =
Reply-Message
NAS-Port = 2
Reply-Message =
"message#1" "message#1"
Reply-Message = Reply-Message =
"message#2" "message#2"
NAS-IP-Address =
"2.3.4.5"
NAS-IP-Address = "2.3.4.5"
Reply-Message =
"message#2"
NAS-Port = 2
Reply-Message = "a new
insert Reply-Message[0]
= "a new message"
NAS-Port = 2
Reply-Message =
"message#1" message"
Reply-Message = Reply-Message =
"message#2" "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"
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"
410 Customizing the HP-UX AAA Server Using Policies