REST module Access-Reject 401 Reply-Message

Jorge Pereira jpereira at
Thu Feb 11 15:06:23 CET 2021


	The next release 3.0.22 is coming up with the new attribute "REST-HTTP-Status-Code” that held the HTTP response code. Feel free to build your own package from <> branch if you want that now. 

Then you will be able to do something like:

If (“%{REST-HTTP-Status-Code}” != “200”) {
   update reply {
       &Reply-Message := “The %{User-Name} can’t log in due to %{REST-HTTP-Status-Code} http response code"

Jorge Pereira
jpereira at

> Em 11 de fev de 2021, à(s) 08:33, Adrian Smith via Freeradius-Users <freeradius-users at> escreveu:
> Question regarding the REST module please.
> If we return a 401 which gets translated into an Access-Reject, is there any way to pass something back from REST which can be put into the reply message?
> In our scenario each user can have a maximum number of sessions, and if that limit is reached, we want to pass that specific error back in the Access-Reject.
> -
> List info/subscribe/unsubscribe? See

More information about the Freeradius-Users mailing list