<!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>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>