Hi,
I've finally got
freeradius working ok with a MySQL backend now, but I would ideally like to be
able to set the Login-Time check attribute in the database table so I can update
it dynamically.
I notice the sql
SELECT query for the authentication check is as follows (from debug
output):
SELECT Value,
Attribute FROM radcheck WHERE UserName = 'username' AND ( Attribute =
'Password' OR Attribute = 'Crypt-Password') ORDER BY Attribute
DESC
I presume that since
the Login-Time attribute is an authentication check one that it should be
entered into the radcheck table - so my question is this.
If I alter the sql
query in sql.conf to read something like
SELECT Value,
Attribute FROM radcheck WHERE USerName = 'user' AND ( Attribute =
'Password' OR Attribute = 'Crypt-Password' OR Attribute = 'Login-Time') ORDER BY
Attribute DESC
and recompile the
module will this be enough for freeradius to do its calculation and return the
Set-Timeout attribute or would I need to edit a bit deeper to get it to work?
Or am I barking up
the wrong tree entirely?
Thanks,
Paul
