Lists other than request in rlm_rest

Jorge Pereira jpereira at
Mon Jan 11 23:43:12 CET 2021

Hi Nathan,

Take a look at the option “data” as described in <>


post-auth {
   uri = “/path?foo=postauth-whatever”
   method = “post”
   data = “{ control_tmp_string_0 = \”%{control:Tmp-String-0}\” }”
   body = 'json'
   force_to = 'plain'

You mean something like that?
Jorge Pereira
jpereira at

> Em 11 de jan de 2021, à(s) 18:21, Nathan Ward <lists+freeradius at> escreveu:
> Hi all,
> I’d like to get control and reply attributes in to rlm_rest requests - we use control attributes for results of various bits of logic which we then translate in to reply attributes in post-auth if relevant - and it’d be useful to get those control attributes in to rest. Reply attributes in there would be useful as well, so we can “log" to a rest endpoint and include the request and reply (and control!) - a slightly different use case but same “tool”.
> From what I can see, there doesn’t seem to be a way to have rlm_rest send attributes in the body (in JSON, let’s say) other than request attributes - the code I can see (rest_encode_json etc.) seems to be always looking at the request (request_t->packet->vps).
> Is there a clever way I haven’t thought of to get control and reply attributes in to rest requests?
> --
> Nathan Ward
> -
> List info/subscribe/unsubscribe? See

More information about the Freeradius-Users mailing list