RE: sqlcounter and session-timeout
I am trying to use sqlcounter to count octets and am having the same problem. It seems that sqlcounter module was designed to handle the amount of time a user is allowed online and as such is hardcoded to return the Session-Timeout value according to the sql query.
how can i override the value of session-timeout, lets say for 10 minutes (i dont care if a user can stay connected until 0:10) ??
I put a seperate entry in the radcheckgroup table with the session-timeout value but freeradius seems to always return the lower of the two values... again presumably to limit online usage.
Anyway let me know if you find a way... I am going to see if I can make sense of "rlm_sqlcounter.c" with my limited c knowledge :-)
I have the same problem and this by configured my nas to discard the session timeout. It would be nice if you could have a config parameter if the system should return session-timeout for the specific sqlcounter or return it as another 'defined by admin' radius attribute (for octets in the case of Nomadix lets say: Nomadix-MaxBytesDown/Nomadix-MaxBytesUp) J.
Jonathan De Graeve wrote:
I have the same problem and this by configured my nas to discard the session timeout.
Unfortunately I don't have any control over the NAS's. I commeted out line 656 and 657 from rlm_sqlcounter.c and just recompiled that library and the Session-Timeout value is not sent anymore. I hope there are no other side affects :-). Here are the lines that I commented out /*DEBUG2("rlm_sqlcounter: Sent Reply-Item for user %s, Type=Session-Timeout, value=%d", key_vp->strvalue,reply_item->lvalue);*/
participants (2)
-
Jonathan De Graeve -
Martin Potgieter