Steve Brown wrote:
> Reading the unlang man page, I've tried:
> 
> accounting {
> 
>        if ( ("%{Acct-Status-Type}" = "Interim-Update") &&
> ("%{User-Name}" =~ "/@domain/") ) {

  That's wrong on a number of levels.  The documentation says you can
just refer to an attribute by name.  And use '==':

  if ((Acct-Status-Type == Interim-Update) && (User-Name =~ /@domain/)) {
        ...
  }


> But that causes the daemon to error out with
> "/etc/raddb/radiusd.conf[1433]: Line is not in 'attribute = value' format"
>
> What have I misunderstood?

  Double-check line 1433?

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

Reply via email to