[EMAIL PROTECTED] 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
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to