Fw: Attribute Max-Daily-Session + Session-Timeout

Abel Monzón jame at yumuri.mtz.sld.cu
Mon Feb 19 08:42:08 CET 2007


No body know what is the solution? I send this e-mail, and nothing of answer.

Good Day
From: Abel Monzón 
To: mailist 
Sent: Monday, February 19, 2007 2:04 AM
Subject: 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20070219/349ec7fe/attachment.html>


More information about the Freeradius-Users mailing list