HP-UX AAA Server A.08.02.10 Administrator's Guide HP-UX 11i v3 (T1428-90093, November 2013)

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 309).
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,
seeAttribute Specifications” (page 309), “Value Types” (page 316), and Attribute Functions
(page 311).
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"
312 Customizing the HP-UX AAA Server Using Policies