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: ppom...@gmail.com
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to