Freeradius-Users Digest, Vol 83, Issue 43

pamela pomary ppomary at gmail.com
Mon Mar 12 13:05:30 CET 2012


Thank you Fajar, it works. i included sqlcounter.conf in module section of
radiusd.conf. Then I inserted into radcheck a user with the attributes
User-Password:="password"
Service-Type:="Framed-User"
Max-Daily-Session:="240"


Debug logs.
rlm_sqlcounter: (Check item - counter) is less than zero
rlm_sqlcounter: Rejected user student, check_item=240, counter=242
  modcall[authorize]: module "dailycounter" returns reject for request 15
modcall: leaving group authorize (returns reject) for request 15
Invalid user (rlm_sqlcounter: Maximum hourly usage time reached): [student]
(from client C2960_NOC_LAN1 port 50009 cli 00-1E-33-D5-7A-68)
Delaying request 15 for 1 seconds
Finished request 15
Going to the next request
Waking up in 6 seconds...
rad_recv: Access-Request packet from host 10.1.5.4:1645, id=81, length=197
Sending Access-Reject of id 81 to 10.1.5.4 port 1645
        Reply-Message = "Your maximum hourly usage time has been reached"


Once again thank you


Pamela Pomary
ICTD University of Ghana
Email: ppomary at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20120312/b7d95c49/attachment.html>


More information about the Freeradius-Users mailing list