20 Oct
2008
20 Oct
'08
9:39 p.m.
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