Attribute Max-Daily-Session + Session-Timeout

Abel Monzón jame at yumuri.mtz.sld.cu
Mon Feb 19 02:04:59 CET 2007


Hello List.

I have a problem. I had limited the Max-Daily-Session = 120, and the Session-Timeout = 60. 

The Session-Timeout work, but the Max-Daily-Session don't. because the Session-Timeout log out the user, but de Max-Daily-Session don't and let log in again.

I have this in my radiusd.conf:

sqlcounter contdiario {
                counter-name = Daily-Session-Time
                check-name = Max-Daily-Session
                sqlmod-inst = sql
                key = User-Name
                reset = daily
                count-attribute = Max-Daily-Session
                query = "SELECT SUM(AcctSessionTime - \
                 GREATEST((%b - UNIX_TIMESTAMP(AcctStartTime)), 0)) \
                 FROM radacct WHERE UserName='%{%k}' AND \
                 UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime > '%b'"
                }

authorize {
                ....
                contdiario
                .....
                }

Any help? Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20070219/882b62d5/attachment.html>


More information about the Freeradius-Users mailing list