Case statement error

Franks Andy (RLZ) IT Systems Engineer Andy.Franks at sath.nhs.uk
Sun Oct 13 19:50:19 CEST 2013


Hi again,
  Sorry to bang on about this, but I'm struggling still.
Brand new machine, Ubuntu 13.04 server, never had freeradius installed
on it. Pulled from git, - (FreeRADIUS Version 3.1.0 (git #209982d), for
host x86_64-unknown-linux-gnu, built on Oct 13 2013 at 18:42:55)
./configure
Make
Make install

Nothing else except putting this in the authorize section of a brand new
default vs

switch "%{control:Tmp-String-0}" {
  case "" {
    update control {
      Tmp-String-0 := "new value"
    }
  }
}

Same outcome :
# Loading authorize {...}
/usr/local/etc/raddb/sites-enabled/default[222]: "case" statements may
only appear within a "switch" section
/usr/local/etc/raddb/sites-enabled/default[222]: Failed to parse "case"
subsection.
/usr/local/etc/raddb/sites-enabled/default[220]: Errors parsing
authorize section.

It just can't be an old binary, guaranteed this machine has never been
near FR. 
Any ideas?
Does anyone mind trying it?
Thanks
Andy

-----Original Message-----
From:
freeradius-users-bounces+andy.franks=sath.nhs.uk at lists.freeradius.org
[mailto:freeradius-users-bounces+andy.franks=sath.nhs.uk at lists.freeradiu
s.org] On Behalf Of Alan DeKok
Sent: 11 October 2013 18:59
To: FreeRadius users mailing list
Subject: Re: Case statement error

Franks Andy (RLZ) IT Systems Engineer wrote:
> I still get 
> # Loading authorize {...}
> /usr/local/etc/raddb/sites-enabled/default[222]: "case" statements may
> only appear within a "switch" section

  You need to upgrade your binary.  You're not using the latest version.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list