HP-UX AAA Server A.08.01 administrator's guide (T1428-90072, May 2010)

Table Of Contents
Table 27-5 Examples of the strcat Attribute Function (continued)
ResultCommandAttributes in the Request
Reply-Message = "123ABC"
Tunnel-Password =
:2:"abc"
modify Reply-Message =
strcat ( Reply-Message,
toupper( Tunnel-Password
) )
Reply-Message = "123"
Tunnel-Password =
:2:"abc"
Reply-Message = "123"
Tunnel-Password = :2:"ABC"
insert Tunnel-Password =
strcat ( tolower(
Reply-Message = "123"
Tunnel-Password =
:2:"ABC"
Tunnel-Password =
:0:"abc123"
Tunnel-Password ),
Reply-Message )
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 426)
“The before Keyword” (page 427)
“The after Keyword” (page 428)
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 422).
<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.
426 Customizing the HP-UX AAA Server Using Policies