HP-UX AAA Server A.08.02.10 Administrator's Guide HP-UX 11i v3 (T1428-90093, November 2013)
attrid The attribute ID to be set or modified.
attrlen The length of the attribute (in bytes) to be set or modified.
attrval The attribute value to be set or modified.
tag The tag for the tagged attribute. This value is 0 if the attribute is untagged.
Return
This API returns one of the following values:
• SDK_SUCCESS if the operation succeeds
• SDK_INVALID_ARG if the arguments are invalid
• SDK_FAILURE if the operation fails
int sdk_set_vend_avp()
int sdk_set_vend_avp(sdk_avp_t *avp,uint32_t vendid, uint32_t attrid,
uint32_t attrlen, void *attrval, u_char tag)
Usage
Sets or modifies an A-V pair (including vendor specific A-V pairs).
Input
avp A pointer to an A-V pair to be set or modified.
vendid The vendor ID of the attribute to be set or modified. For a standard RADIUS attribute,
use VC_RADIUS which is 0
attrid The attribute ID to be set or modified. For a vendor-specific attribute, the attribute ID
is the vendor type or sub-attribute.
attrlen The length of the attribute (in bytes) to be set or modified. For a vendor-specific
attribute, the length is the vendor length.
attrval The attribute value to be set or modified. For a vendor-specific attribute, the attribute
value is the sub-attribute value.
tag The tag for a tagged attribute; 0 for untagged attribute.
Return
This API returns one of the following values:
• SDK_SUCCESS if the operation succeeds
• SDK_INVALID_ARG if the arguments are invalid
• SDK_FAILURE if the operation fails
Authreq APIs
This section discusses the authreq APIs.
NOTE: The following constants are defined for different queue types that are used in authreq:
• AUTHREQ_REQUEST_QUEUE for the inbound request attributes queue
• AUTHREQ_REPLY QUEUE for the reply attributes queue
• AUTHREQ_CHECK_QUEUE for the check items queue
• AUTHREQ_DENY_QUEUE for the deny items queue
The check items and deny items are A-V pairs configured in the user profile for the corresponding
user request.
sdk_avp_t *sdk_find_avp()
sdk_avp_t *sdk_find_avp (sdk_authreq_t *authreq, u_char qtype, uint32_t
attrid, uint32_t attrlen, void *attrvalue, void *position, u_char tag)
432 Header Files, Data Structures, and APIs in the HP-UX AAA Server SDK