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

Table Of Contents
radrequest
Pointer to the RADIUS request currently processed.
data
For source mapping: Address where to store the result.
For target mapping: Address from where to copy data.
len
For source mapping: Address of the maximum permissible length
for the data buffer. The function returns the actual length of data
copied to target buffer.
For target mapping: Address of actual length of data in the data
buffer.
Return Values Custom or pre-defined event code. See “Event Names (page 399)
for more information on pre-defined event codes.
Conversion functions use the following prototype:
int32 ConversionFunction (void *source, uint *sourceLen, void
*Target, uint *TargetLen)
Where:
source
Address of the data to convert.
sourceLen
Address of the length of the source data.
Target
Address to store the converted data.
TargetLen
Passes address of maximum length allowed for target buffer into
function. Returns the actual data length copied to the target buffer.
Return Values
Custom or pre-defined event code. See “Event Names (page 399)
for more information on pre-defined event codes.
Null SQL Statements
SQL action mappings can be defined without an SQL statement. This flexibility is
provided so that you can execute pre-defined or customer defined functions on the
source or target data, where database access is not required. This is useful for situations
such as complex parsing of an attribute that require extracting sub realms from an
Network Access Identifier (NAI).
Null Source and Target Mapping
You can also specify SQL action mappings without the source or target mapping. In
this case, no data will be input to the SQL statement and/or the SQL statement execution
will not return any data. An example of an SQL action containing only SQL statements
is an expired session cleanup operation as shown in Example 22-7:
370 SQL Access