Thanks, Because I'm new with radius. But I have to check in database how many time user left so that I can send to radius. So, I will read document carefully and check if it possible. Thank you very much. Manh Cuong.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Keith Yoder Sent: Wednesday, February 18, 2004 5:14 PM To: [EMAIL PROTECTED] Subject: Re: Session-Timeout Message >Hi all, >Please help me how to write a perl script to control user account: When prepaid user log on(authenticate), the script will check in database and send session->timeout to radiusd. If you're trying to do what I think you are, you don't need to use perl. Take a look at the rlm_counter (or rlm_sqlcounter) modules. You can use the Max-All-Session attribute to define the total number of seconds a user can be logged into your network. Keith - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html