unlang conditionals

2011-05-16 Thread d...@hotmail.com
Hello... This is probably a very silly issue. I have the following on my default file: update control { Tmp-String-0 = %{sql:select a from paq where CallingStationId='%{Calling-Station-Id}' Tmp-String-5 = %{sql:select b from paq where CallingStationId='%{Calling-Station-Id}'

Re: unlang conditionals

2011-05-16 Thread d...@hotmail.com
Hello... This is probably a very silly issue. I have the following on my default file: update control { Tmp-String-0 = %{sql:select a from paq where CallingStationId='%{Calling-Station-Id}' Tmp-String-5 = %{sql:select b from paq where CallingStationId='%{Calling-Station-Id}' } if

Re: unlang conditionals

2011-05-16 Thread d...@hotmail.com
I found out after checking other posts that the correct syntax of the IF should be as follows: if (%{control:Tmp-String-0} %{control:Tmp-String-5} ) { } this is working now for me. -- View this message in context:

Re: Radius proxy implementation

2011-05-14 Thread d...@hotmail.com
Hello... I was able to overcome a lot of stoppers but I still need some help. SERVERfreeRadius-client the freeradius is proxying authentication messages to the SERVER, after authenticated, the client is doing accounting to freeRadius and packet counts are stored in

Re: Radius proxy implementation

2011-05-12 Thread d...@hotmail.com
Hello... Nice!, I got the proxy part working now. The client is also sending accounting information and I can see teh accounting info on mysql (radacct table). Now, what I still need to do is to monitor the packets sent/received by users, when the amount of packets reaches a certain level I then

Re: Radius proxy implementation

2011-05-11 Thread d...@hotmail.com
Hello Fajar... After some struggle I setup a proper environment to test your suggestions. I am able to proxy the access_request to the radius server now. Using the pre-proxy I also added the AVPs that I need to send to the server. I have two questions now: 1. On the access request I see all

Radius proxy implementation

2011-05-02 Thread d...@hotmail.com
Hello... I am new to freeradius and I am hoping someone can give me some help with a little project. The architecture is as follows: RADIUS SERVER -freeRadius-Radius client The radius client is sending Authentications and accounting requests to freeRadius. For

Re: Radius proxy implementation

2011-05-02 Thread d...@hotmail.com
Thanks for your quick reply... In order to store the accounting information, do I need to execute an external script? With my little knowledge of freeRadius at the moment, I have a vague idea on how to forward the packets, but I have no clue yet on how to do the mysql part you mentioned. Could