Version 2.1.11 has been released
Alan DeKok
aland at deployingradius.com
Tue Jun 21 11:53:30 CEST 2011
Stefan Winter wrote:
> a similar issue with the config parser here...
>
> The following worked nicely in 2.1.10, but barks with "Unexpected text
> else" (and with the obvious change to elsif, "Unexpected text elsif").
>
> if ( "%{NAS-Identifier}" == "ejabberd" ) {
> update request {
> RESTENA-Service-Type = "Staff-Jabber"
> }
> } else
Except that's wrong... it doesn't do what you want! The "else" is
ignored.
> But... what's wrong with that? How would I have to fix the syntax to be
> acceptable?
$ man unlang :)
Everything needs to go on its own line:
if (...) {
...
}
elsif (...) {
...
}
Using "} elseif" won't work. The "elsif" will *always* be ignored.
Alan DeKok.
More information about the Freeradius-Users
mailing list