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

Conversion Functions
A conversion function is executed between the source and target mapping and can be
used to convert or modify data.
You can identify a conversion function in the conversion_function variable for
each mapping entry. conversion_function is the name of the function to execute.
It can either be a pre-defined function included in the AAA Server, or a user-defined
function. See Advanced SQL Mapping Configuration” (page 232) for more information
on user-defined conversion functions.
Table 18-9 lists the pre-defined conversion functions:
Table 18-9 Pre-defined Conversion Functions
DescriptionConversion Function
Converts the binary IP address to an ASCII string.
AAAIPtoString
Converts the binary IPv6 address to an ASCII string as specified in DFC
2373.
AAAIPv6toString
Converts the ASCII string to a binary IP address.
AAAStringtoIP
Converts the ASCII string to a binary IPv6 address as specified in RFC 2373.
AAAStringtoIPv6
Converts a RADIUS IPv6 Prefix attribute type to an ASCII string containing
the prefix/length format as specified by RFC 2373.
AAAIPv6PrefixtoString
Converts an ASCII string containing the prefix/length format as specified
by RFC 2373 to the RADIUS IPv6 Prefix attribute type.
AAAStringtoIPv6Prefix
Converts the RADIUS IPv6 interface identifier attribute type to an ASCII
string as specified by RFC 2373.
AAAIPv6InterfaceIDto
String
A failure of a conversion function results in the termination of the SQL action.
The following example for OCI uses the pre-defined conversion function
AAAIPtoString in an input mapping entry to convert a binary IP address to an ASCII
string:
input
RAD(Login-IP-Host) DBP(iphost, 46, CHAR) AAAIPtoString
SQL Statement
The SQLStatement section defines the SQL statement using standard SQL statement
syntax to execute on the input data. Following is the syntax of the SQLStatement data
structure:
SQLStatement instance {sql_statement}
Where:
instance Database instance identified by the DBID structure.
Implementing SQL Access 229