RLM_Perl Question

Alan DeKok aland at deployingradius.com
Tue Feb 7 20:34:24 CET 2017


On Feb 7, 2017, at 12:18 PM, Arnab Roy <arnabroy at mail.com> wrote:
>   I trying to write out if the request was accepted or rejected using RLM
>   perl into a json file. I am able to get everything under the sun for
>   the request apart from this simple thing.
> 
>   Looking at how this is done in the sql module it appears its just a
>   simple expansion of %{reply:Packet-Type}, but cant find a way to do the
>   same in RLM perl.

  The reply type isn't set until after all of the modules are run.

  You can instead use the post-auth section to do this logging.  The main post-auth section is for Access-Accept.  The "Post-Auth-Type Reject" section is for Access-Reject.

  Alan DeKok.




More information about the Freeradius-Users mailing list