Return codes in policies

Alan DeKok aland at
Wed Oct 28 13:38:45 CET 2015

On Oct 28, 2015, at 6:35 AM, Jonathan Gazeley <Jonathan.Gazeley at> wrote:
> Hi folks,
> I am porting my FreeRADIUS config from 2.x to 3.x and I've run into an issue I don't understand. I have this policy "wism-checks" which allows the server to respond to probes sent by the WLAN controllers. It is invoked in the authorize section of my virtual servers.
> wism-checks {
>        if (Service-Type == "NAS-Prompt-User") {
>                updated = return

   That worked by accident, not by design.  The documentation described how it should have worked.

> /etc/raddb/policy.d/policies[178] Invalid return code assigment inside of a if section
> /etc/raddb/policy.d/policies[166]: Failed to parse "if" subsection.
> Line 178 is the "updated = return" line. I've read the Fail-over docs[1] but that seems to deal with overriding return codes from modules rather than setting them explicitly in a policy. What's the best way to tweak this?

$ man unlink

  In v3, do:

	if (updated) {

More information about the Freeradius-Users mailing list