group variable

tnt at kalik.net tnt at kalik.net
Tue Oct 21 03:39:27 CEST 2008


>>> same result with .
>>>
>>>
>>
>> Let's try a workaround. Get group name by executing query again in
>> authorize section:
>>
>> update control {
>>    Tmp-String-0 := "%{sql:SELECT GroupName FROM radusergroup WHERE
>> UserName='%{User-Name}' ORDER BY priority}"
>> }
>>
>> "%{control:Tmp-String-0}" will hold group name then.
>>
>
>This already works .... the goal was to avoid mulplication of sql queries.
>But if there is no other solutions.....
>

I am not sure what's going on. "%{control:Sql-Group}" expands to an
empty string in unlang. But:

DEFAULT   Sql-Group == "dialup"

matches in users file as expected. For that same request!?

Ivan Kalik
Kalik Informatika ISP




More information about the Freeradius-Users mailing list