How to return out of a policy.d module
Alan DeKok
aland at deployingradius.com
Fri Nov 4 16:40:09 CET 2016
On Nov 4, 2016, at 11:34 AM, Brian Candler <b.candler at pobox.com> wrote:
>
> Is it possible to jump out of a policy.d function, without exiting the whole request?
Unfortunately, no. For various reasons, policies aren't really functions. They're pretty much included in-line in the configuration section which uses them.
It would be possible to change the "return" statement so that it's scoped. i.e. it returns out of whatever logical block it's in. But that can't be done for v3. Perhaps in v4 it's easier.
Alan DeKok.
More information about the Freeradius-Users
mailing list