2 Sep
2008
2 Sep
'08
7:50 p.m.
Ljupco Vangelski wrote:
I'm trying to allow a user to log in from few Calling-Station-Ids, but to load them at run-time (read them from mysql table). For that I'm trying to use sql statement in radcheck, but it doesn't seem to be working.
Here is a simplified example (mysql, table radcheck):
UserName..........Attribute..............op..........Value (1) test Calling-Station-Id == 001122334455 (is working) (2) test Calling-Station-Id == %{sql:select "001122334455";} (is not working)
That isn't valid SQL, for one.
Can sql statements be used to compare against the Attribute Value in CHECK statements, like in the cases (2) above?
Not really. Alan DeKok.