rc_aaa3
Builds an authentication/accounting request for port id nas_port with the value_pairs send and submits it to a server.
Usage
#include <radcli/>
int rc_aaa(
rc_handle *rh,
uint32_t nas_port,
VALUE_PAIR *send,
VALUE_PAIR **received,
char *msg,
int add_nas_port,
rc_standard_codes request_type
);
Overview
Parameters
rh-
a handle to parsed configuration.
nas_port-
the physical NAS port number to use (may be zero).
send-
a VALUE_PAIR array of values (e.g., PW_USER_NAME).
received-
an allocated array of received values.
msg-
must be an array of PW_MAX_MSG_SIZE or NULL; will contain the concatenation of any PW_REPLY_MESSAGE received.
add_nas_port-
this should be zero; if non-zero it will include PW_NAS_PORT in sent pairs.
request_type-
one of standard RADIUS codes (e.g., PW_ACCESS_REQUEST).
Return value
received value_pairs in received, messages from the server in msg and OK_RC (0) on success, CHALLENGE_RC (3) on Access-Challenge received, negative on failure as return value.
Releases
4 releases since Debian 11 (Bullseye); the text changed 1 time.