Attribute Max-Daily-Session + Session-Timeout



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


This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.