Btw, what' the mean of the sql in the following script: if(...){ sql (here) } I got it from http://wiki.freeradius.org/modules/Rlm_sql -----Original Message----- From: freeradius-users-bounces+knightluffy=live.com@lists.freeradius.org [mailto:freeradius-users-bounces+knightluffy=live.com@lists.freeradius.org] On Behalf Of Alan DeKok Sent: Saturday, September 27, 2014 9:39 PM To: FreeRadius users mailing list Subject: Re: How to send disconnect message to the NAS? Xin wrote:
I have fully read the document you specified. I see I can use "update coa" section in order to send the disconnect packet, but my question is: the traffic data are stored in MySQL, Can I write a SQL statement in "originate-coa" file in order to get the user who has ran out of data and he can send the disconnect message.
The username is in the accounting packet. Do this in the "accounting" section: update disconnect { User-Name = "%{request:User-Name}" } Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html