7 Feb
2017
7 Feb
'17
2:34 p.m.
On Feb 7, 2017, at 12:18 PM, Arnab Roy <arnabroy@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.