Alan DeKok Wrote:
The sqlcounter module should be pretty simple. Configure accounting data to go into SQL, and ensure that the server is receiving accounting packets. Then, configure the sqlcounter module.
My rlm_sqlnoresetcounter module:
sqlcounter noresetcounter {counter-name = Max-All-Session-Time
check-name = Max-All-Session
sqlmod-inst = sql
reset = never
query = "SELECT IFNULL(SUM(AcctSessionTime),0) FROM radacct WHERE UserName='${key}'"