HP-UX AAA Server A.08.02.10 Administrator's Guide HP-UX 11i v3 (T1428-90093, November 2013)
Example 3 User and Password Input and Output Mappings
For OCI:
input
RAD(User-ID, REPLY) DBP(userid,64,CHAR)
output
DBC(user_password,128,CHAR) RAD(Password, CHECK)
DBC(address_pool, 128, CHAR) RAD(Address-Pool, REPLY)
For ODBC:
input
RAD(User-Id, REPLY) DBP(1, 254,CHAR)
output
DBC(user_password, 128, CHAR) RAD(Password,CHECK)
DBC(address_pool, 128, CHAR) RAD(Address-Pool,REPLY)
The input mapping locates the RADIUS attribute User-Id in the reply queue and associates a
data pointer to the local value. The output mapping maps the value retrieved from the database
column user_password to the RADIUS attribute Password as a check item, and the value
retrieved from the database column address_pool to the RADIUS attribute Address-Pool as
a reply item.
RET Mapping
RET can be used when DBR is a source mapping. RET is used to return FSM events if the return
values and error codes configured in DBR match. RET has the following syntax:
RET(return event)
For more information on RET mapping, see “SQL Result Mapping” (page 267).
Mapping Functions
Mapping functions can be used in input and output mapping entries either as a source or target
definition.
Mapping function definitions have the following syntax:
FUNC (mappingfunction)
Where:
mappingfunction The function name to execute a mapping. Can either be a pre-defined
function included in the AAA Server, or a custom defined function. See
“Advanced SQL Mapping Configuration” (page 270) for more information
on custom mapping functions.
HP provides the following pre-defined mapping function, listed in Table 77:
Table 77 Pre-defined Mapping Functions
DescriptionMapping FunctionMapping Type
Returns the AAA Server hostname. It uses the RADIUS Server
host name stored in aaa.config or the result of the
AAALocalHostSource
gethostname() system call when hostname is not
configured.
Returns the local IP address in binary format as returned by
getaddrinfo() for AAALocalHost.
AAALocalIPSource
Returns the local IPv6 address in binary format as returned by
getaddrinfo() for AAALocalHost.
AAALocalIPv6Source
Implementing SQL Access 263