HP-UX AAA Server A.08.02 Administrator's Guide
The length Attribute Function
Syntax
length (<attr-spec>)
Parameters
The <attr-spec> parameter is an attribute specification. For more information on specifying
attributes, see “Attribute Specifications” (page 308).
Operation
Returns an integer value that indicates the number of characters in the string attribute. For a tag-str
attribute, the tag octet is not included. If <attr-spec> refers to an instance that is not present,
then a no-such-instance run-time error is generated.
The strcat Attribute Function
Syntax
strcat (<value-expr>, <value-expr>)
Parameters
The <value-expr> parameter is a value expression. It can also be a string value specification,
a string attribute specification, or an attribute function that returns string value. For more information,
see“Attribute Specifications” (page 308), “Value Types” (page 315), and “Attribute Functions”
(page 310).
Operation
Returns a string value that is a concatenation of the value expressions used in the strcat function.
For a tag-str attribute, the tag octet is not included. If <value-expr> refers to an instance
that is not present, then a no-such-instance run-time error is generated.
Table 92 illustrates the usage of the strcat attribute function.
Table 92 Examples of the strcat Attribute Function
ResultCommandAttributes in the Request
Reply-Message = "123"
Reply-Message = "123456"
insert Reply-Message =
strcat (Reply-Message,
"456")
Reply-Message = "123"
Reply-Message = "123"
Tunnel-Password = :2:"def123"
modify Tunnel-Password[0] =
strcat( Tunnel-Password,
Reply-Message)
Reply-Message = "123"
Tunnel-Password = :2:"abc"
Tunnel-Password = :2:"def"
Tunnel-Password = :2:"def"
Reply-Message = "123"
Tunnel-Password = :2:"abc"
Reply-Message = "bc123"
insert Reply-Message =
strcat (
substr(Tunnel-Password after
“a” ), Reply-Message)
Reply-Message = "123"
Tunnel-Password = :2:"abc"
Reply-Message = "123ABC"
Tunnel-Password = :2:"abc"”
modify Reply-Message =
strcat ( Reply-Message,
toupper( Tunnel-Password )
)
Reply-Message = "123"
Tunnel-Password = :2:"abc"
Defining a Policy in a Decision File 311