It will (probably) work for someone with ChilliSpot, but the problem in Freeradius will remain. I am pointing out the line in rlm_sqlcounter.c code which is quite likely the reason for the "error". If someone fixes this module this problem will be resolved for everybody in new Freeradius versions. I hope that the idea is to fix the bug when you find one. Ivan Kalik Kalik Informatika ISP Dana 10/3/2007, "Internet-Wifi Operador" <internet-wifi@hotmail.com> piše:
I don´t understand what you want exactly, but if want change the message, You can check the reply message in your hostspotlogin.cgi or php script, so when receibe if ($msg =="Your maximum....") $msg = "The message you want" echo $msg;
That is did. Sorry if not you what you are looking for, but my english is too bad.
From: <tnt@kalik.co.yu> Reply-To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> To: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Subject: Re: [Chillispot] Correction of Reply Messages Date: Sat, 10 Mar 2007 11:39:19 +0100
I think that this is a trivial bug:
sqlcounter noresetcounter { counter-name = Max-All-Session-Time check-name = Max-All-Session sqlmod-inst = sql key = User-Name reset = never query = "SELECT SUM(AcctSessionTime) FROM radacct WHERE UserName='%{%k}'" }
It sends reset parameter instead of (?)check name parameter in the reply. You should report it.
There should be something else (? %S if there is one) instead of %s here:
snprintf(msg, sizeof(msg), "Your maximum %s usage time has been reached", data->reset);
Ivan Kalik Kalik Informatika ISP
Dana 10/3/2007, "PD" <paul@ranahminang.net> piše:
Thx Brad...
But... our FR installation is came from FBSD ports, not self compiling. How to apply yr patch ?
Cheers
PD
On 3/10/2007, "Brad Evans" <brad@totalweb.net.au> wrote:
Hi,
Check out the "FreeRadius" forum at www.chillispot.org - there is a patch there which allows you to specify custom reply messge text.
Cheers
PD wrote:
Dear all,
Sorry for cross post... since I doubt about which area of this question.
I just create one account call test for duration 300 second / 5 minutes. After the maximum time reached, I logged by the system out. When I try to log in again, the reply message display is "Your maximum never usage time has been reached"
Seems that I have some correction for the message (take out never), but I do not know how to do it.
Can some one let me know where to edit the above reply message ?
TIA
PD
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
_________________________________________________________________ Find what you need at prices you�ll love. Compare products and save at MSNŽ Shopping. http://shopping.msn.com/default/shp/?ptnrid=37,ptnrdata=24102&tcode=T001MSN2...