HP-UX AAA Server A.08.02 Administrator's Guide
Table 118 Information Types (continued)
DescriptionInformation Type
The time to live (in seconds) of an authentication
request. The request is removed from the
AUTHREQ_EXPIRE_TIME
authentication request queue when the specified
time elapses. The time to live has a type of
unsigned character.
The client UDP port where the request came from.
The port has a type of unsigned short.
AUTHREQ_CLIENT_PORT
IPv4 address: The IPv4 address of the network
device where the request came from. The address
is a 4 byte numeric value in network-byte order.
AUTHREQ_CLIENT_IPADDRV4
IPv6 address: The IPv6 address of the network
device where the request came from. The address
is a 16 byte numeric value in network-byte order.
AUTHREQ_CLIENT_IPADDRV6
len The address of a variable to store the length of the concerned value.
value The address of a pointer that points to the content of the value
Output
len The input integer stores the length of the value (in bytes).
value The input pointer points to the content of the value for non-scalar types of data. You must
copy the contents that are of value. The memory for the value must not be freed after you
copy the contents. The input pointer points to NULL if the client uses an IPv4 address and
the user input argument is AUTH_CLIENT_IPADDRV6. The input pointer also points to
NULL if the client uses an IPv6 address and the user input argument is
SDK_AUTH_CLIENT_IPADDRV4.
Return
Returns one of the following values:
• SDK_SUCCESS if the operation succeeds.
• SDK_INVALID_ARG if the arguments are invalid.
Logging APIs
This section discusses the APIs that can be used to customize the logging functionality of the HP-UX
AAA Server.
NOTE: The HP-UX AAA Server supports two logging subsystems that are used simultaneously.
There is a standard logging subsystem that can be directed to a AAA log file, stdout, or syslog,
and a debug log file that can be used for troubleshooting and debugging.
int sdk_logit()
int sdk_logit ( int level, const char *format, /* [arg,], */ ...)
Usage
Logs the provided log message to the logging facility specified while starting the HP-UX AAA
Server. It can be one of the HP-UX AAA log files, syslog or stdout. By default, log messages
are logged in the HP-UX AAA log files (the /var/opt/aaa/logs/ directory is the default location).
Input
level Log level from syslog.h. You can use one of the following log levels from /usr/
include/syslog.h:
• Use LOG_EMERG if the system is unusable
• Use LOG_ALERT if action must be taken immediately
APIs in the HP-UX AAA Server SDK 435