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

Table 92 Examples of the strcat Attribute Function (continued)
ResultCommandAttributes in the Request
Reply-Message = "123"
Tunnel-Password = :2:"ABC"
Tunnel-Password = :0:"abc123"
insert Tunnel-Password =
strcat ( tolower(
Tunnel-Password ),
Reply-Message )
Reply-Message = "123"
Tunnel-Password = :2:"ABC"
Reply-Message = "123"
Tunnel-Password =
:2:"123456abc"
modify Tunnel-Password =
strcat( Reply-Message,
strcat ( "456",
Tunnel-Password ) )
Reply-Message = "123"
Tunnel-Password = :2:"abc"
The substr Attribute Function
The substr function can be used with the following keywords:
“The offset Keyword” (page 312)
“The before Keyword” (page 313)
“The after Keyword” (page 314)
The following sections describe these keywords in detail.
The offset Keyword
Syntax
substr (<attr-spec> offset <start>)
substr (<attr-spec> offset <start> length <number>)
Parameters
Following are the parameters for the offset keyword:
<attr-spec>: The <attr-spec> parameter is an attribute specification. For more
information on specifying attributes, see Attribute Specifications” (page 308).
<start>: Specifies the offset from the beginning of the string to the first character of the
desired substring. It must be a non-negative integer constant.
<number>: The optional length of the desired substring. It must be a non-negative integer
constant.
NOTE: If length <number> is not present then the length defaults to the remainder of the
string.
Operation
Returns the requested substring with same type as the source. If the offset is off the end of the string,
then substr returns an empty string.
312 Customizing the HP-UX AAA Server Using Policies