<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>No body know what is the solution? I send this 
e-mail, and nothing of answer.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Good Day</FONT></DIV>
<DIV style="FONT: 10pt arial">
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A 
title=jame@yumuri.mtz.sld.cu href="mailto:jame@yumuri.mtz.sld.cu">Abel 
Monzón</A> </DIV>
<DIV><B>To:</B> <A title=freeradius-users@lists.freeradius.org 
href="mailto:freeradius-users@lists.freeradius.org">mailist</A> </DIV>
<DIV><B>Sent:</B> Monday, February 19, 2007 2:04 AM</DIV>
<DIV><B>Subject:</B> Attribute Max-Daily-Session + Session-Timeout</DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hello List.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have a problem. I had limited the 
Max-Daily-Session = 120, and the Session-Timeout = 60. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have this in my radiusd.conf:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>sqlcounter contdiario 
{<BR>                
counter-name = 
Daily-Session-Time<BR>                
check-name = 
Max-Daily-Session<BR>                
sqlmod-inst = 
sql<BR>                
key = 
User-Name<BR>                
reset = 
daily<BR>                
count-attribute = 
Max-Daily-Session<BR>                
query = "SELECT SUM(AcctSessionTime - 
\<BR>                 
GREATEST((%b - UNIX_TIMESTAMP(AcctStartTime)), 0)) 
\<BR>                 
FROM radacct WHERE UserName='%{%k}' AND 
\<BR>                 
UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime > '%b'"</FONT></DIV>
<DIV><FONT face=Arial size=2>        
        }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>authorize {</FONT></DIV>
<DIV><FONT face=Arial size=2>        
        ....</FONT></DIV>
<DIV><FONT face=Arial 
size=2>                
contdiario</FONT></DIV>
<DIV><FONT face=Arial size=2>        
        .....</FONT></DIV>
<DIV><FONT face=Arial size=2>        
        }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any help? Thanks</FONT></DIV></BODY></HTML>