Stefan Winter wrote:
> Using the following in preacct threw a parser error. Maybe I'm just
> blind. I don't see the syntax error:

  The parse is bad...

> if (Acct-Status-Type == "Accounting-Off" && !(Acct-Session-Id =~
> "restena.*")) update control {
> ~                       Proxy-To-Realm := testrealm.lu
> ~               }
> 
> (first and second line wrapped)

  if ((Acct-Status-Type == "Accounting-Off") && !(Acct-....)) {
        update control {
                Proxy-To-Realm...
        }
  }

  Remember, this isn't C.  It's a line-based parser.  Everything goes on
one line, and you can't put "if" and "update" on the same line.

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

Reply via email to