Radius accounting

Alan DeKok aland at deployingradius.com
Tue Apr 17 13:57:48 CEST 2007


markus.wintruff at linde.com wrote:
> So i put this to acct_users:
> 
> DEFAULT Acct-Session-Id =~ "^.*(NC|JSAM|WSAM).*"
>         My-ST == `%{1}`

  Please read "man users".  You are putting the attribute in the reply
list.  You are using "==", which is a comparison operator, rather than "='.

> i see that rad_xlat gives the correct value to My-ST but i cant use it
> in the sql statement.
> Its empty.
> 
> acct_users: Matched entry DEFAULT at line 23
>         radius_xlat:  'WSAM'
> 
> How can i define new Attributes? And use them in sql.conf

  Read doc/variables.txt

  If you fix the operator to '=', you can probably reference it in the
SQL statement as %{reply:My-ST}.

  Alan DeKok.
--
  http://deployingradius.com       - The web site of the book
  http://deployingradius.com/blog/ - The blog



More information about the Freeradius-Users mailing list