Hello freeradius-users@, Using a packaged version 3.0.4 on a RedHat box I have in a sites-enabled/default config something that looks like this: post-auth { if (foo == barr { # do something ok = return } which results in this output with -X: # Loading post-auth {...} /etc/raddb/sites-enabled/default[...] Invalid return code assigment inside of a if section /etc/raddb/sites-enabled/default[...]: Errors parsing post-auth section. If I change 'ok = return' to just return this is the result: # Loading post-auth {...} /etc/raddb/sites-enabled/default[...]: Failed to find "return" in the "modules" section. /etc/raddb/sites-enabled/default[...]: Failed to parse "return" entry. /etc/raddb/sites-enabled/default[...]: Errors parsing post-auth section. If I remove the line with the 'return' in it, radiusd starts up just fine. I must be missing something obvious? This is adapted from a prior installation with 2.x, which apparently used to work. I'm a bit new to using FreeRADIUS and hopefully only a gentle whack with the clue bat is needed. Thanks for the clue in advance. John
On Sep 21, 2016, at 10:03 PM, John Kristoff <jtk@depaul.edu> wrote:
Using a packaged version 3.0.4 on a RedHat box
If only RedHat would ship a version released in the last two years. <sigh>
I have in a sites-enabled/default config something that looks like this:
post-auth { if (foo == barr { # do something ok = return }
That doesn't work, and was never intended to work. No documentation ever said that it worked.
If I remove the line with the 'return' in it, radiusd starts up just fine. I must be missing something obvious? This is adapted from a prior installation with 2.x, which apparently used to work.
It worked by accident in 2.1, and 2.2.0. Its has NOT worked in any version of the server since then.
I'm a bit new to using FreeRADIUS and hopefully only a gentle whack with the clue bat is needed. Thanks for the clue in advance.
$ man unlang There's a "return" statement. if (ok) { return } Alan DeKok.
On 2016-09-22 16:23, Alan DeKok wrote:
On Sep 21, 2016, at 10:03 PM, John Kristoff <jtk@depaul.edu> wrote:
Using a packaged version 3.0.4 on a RedHat box
If only RedHat would ship a version released in the last two years. <sigh>
BTW: If you release 3.0.12 *really soon* there would be a good chance to get it into next openSUSE release Leap 42.2. Ciao, Michael.
On Sep 22, 2016, at 10:32 AM, Michael Ströder <michael@stroeder.com> wrote:
If you release 3.0.12 *really soon* there would be a good chance to get it into next openSUSE release Leap 42.2.
Yeah... the summer was a near-total loss for getting productive FR work done. It's better now. Alan DeKok.
participants (3)
-
Alan DeKok -
John Kristoff -
Michael Ströder