HP-UX AAA Server A.08.00.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 364) for more information
on user-defined conversion functions.
Table 22-9 lists the pre-defined conversion functions:
Table 22-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
Converts the ASCII value of the Tagged Integer attribute represented
as :<tag value>:<integer value> into octets.
AAATagInttoOctets
Converts the ASCII value of the Tagged String attribute represented as
:<tag value>:<string> into octets.
AAATagStrtoOctets
Converts an hexadecimal string to a binary string format The hex string can
be of the form 0x< hex string> or can be just < hex string>.
AAAHexToBinaryString
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
356 SQL Access