Hi,

while writing a PostAuthHook, I found the wish to be able to access
the reject reason in that handler. The appended little patch does it.

The documentation to PostAuthHook could then contain something like:

       The fourth argument is a reference to a string variable
       holding the reason for a reject, or undefined if none is
       available.

It would be nice to see something like this in the next version.

Robert

diff -r Radiator-2.18/Radius/Handler.pm Radiator-2.18.rejectreason/Radius/Handler.pm
491c491
<       eval{ &{$self->{PostAuthHook}}(\$p, \$rp, \$handled); };
---
>       eval{ &{$self->{PostAuthHook}}(\$p, \$rp, \$handled, \$reason); };

Reply via email to