radcli_dae_req_user_name(3)
π radcli_dae_req_user_name(3)
okay so bestie, welcome to the Radius client library docs π this one's a lil function called radcli_dae_req_user_name and honestly? it's giving "small but mighty." it hands you the request's User-Name β but only if the request actually carried one. no User-Name, no dice. that's the whole vibe.
β¨ NAME β¨
radcli_dae_req_user_name β returns the request's User-Name, if it carried one. that's it, that's the function π«Ά
β¨ SYNOPSIS β¨
#include <radcli/>
const char * radcli_dae_req_user_name(
const radcli_dae_request *req
);
look at that signature, so clean, so iconic π
β¨ DESCRIPTION β¨
ngl, the original page leaves this section completely empty π like literally nothing here. so no extra lore from me β everything you need is down in PARAMETERS and RETURN VALUE. go off, read those π
β¨ PARAMETERS β¨
reqβ a request passed to aradcli_dae_handler. that's the one you're interrogating. be nice to it π§
β¨ RETURN VALUE β¨
you get a NUL-terminated string β and here's the tea: it's owned by req, and it's valid until req is freed. so like, don't go freeing it yourself or hanging onto it after the request dips out π
and it returns NULL if req is NULL or if it carried no User-Name. no name, no string. simple as π
π SEE ALSO π
the whole friend group, assembled:
radcli_ctx_dispatch(3)radcli_ctx_get_poll(3)radcli_dae_free(3)radcli_dae_new(3)radcli_dae_process(3)radcli_dae_reply(3)radcli_dae_reply_error(3)radcli_dae_reply_to_buffer(3)radcli_dae_req_attrs(3)radcli_dae_req_code(3)radcli_dae_req_framed_ip(3)radcli_dae_req_nas_port(3)radcli_dae_req_session_id(3)radcli_dae_request_free(3)radcli_dae_set_handler(3)radcli_dae_start(3)
aaaand that's the page!! π¦ this lil gem comes to you from radcli, dated 2026-10-10 β go forth and grab those User-Names, bestie, you got this fr fr πβ¨
π¦ where this page comes from
- arch rolling: radcli 2.0.1-1 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms