<div dir="ltr"><br><div class="gmail_extra"><br>On Tue, Jan 8, 2013 at 12:05 AM, Alan DeKok <span dir="ltr"><<a href="mailto:aland@deployingradius.com" target="_blank">aland@deployingradius.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>Alan DeKok Wrote: <br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div></div>The sqlcounter module should be pretty simple. Configure accounting data to go into SQL, and ensure that the server is receiving accounting packets. Then, configure the sqlcounter module.<br><div></div></blockquote>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>My rlm_sqlnoresetcounter module:<br><br>sqlcounter noresetcounter {</div>
<div> counter-name = Max-All-Session-Time<br> check-name = Max-All-Session<br> sqlmod-inst = sql </div></blockquote><div> key = User-Name</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div> reset = never<br> query = "SELECT IFNULL(SUM(AcctSessionTime),0) FROM radacct WHERE UserName='${key}'"<br>
<br></div> </blockquote><div><br></div><div>Alan DeKok Wrote: </div><div><br></div><div>You edited the default configuration, and broke it. Don't do that. The default uses %{${key}}, not ${key}. They're different.</div>
<div><br></div><div>Russell Wrote: </div><div>Yes, Alan D. </div><div>That's Brilliant, You hit the nail in the head strate, your advice fixed the problem. Configuration is now working!!!</div><div><br></div><div>Counter is retuning the values back and prepaid users are in control now. I was struggling about a week now. Billion of thanks man. World is grateful for the work you are doing. </div>
<div><br></div><div>Secondly, You are right, i broke the server by changing the veritable in query. I was advised to change make changes and i did it wrong **my mistake**. Kindly advice me for this warnings as well. Can i safely ignore them? They caused me to change the default query </div>
<div><br></div><div>When i start the server is debug mode and users authenticate. i get this two lines. Are they safe to ignore? </div><div><br></div><div>WARNING: Please replace '%k' with '${key}'<br></div>
<div>WARNING: Please replace '%S' with '${sqlmod-inst}'<br></div><div><br></div><div>Thanks Alan you saved my life. </div><div><br></div></div></div>