Hi Herwin, Thanks for the information and the documentation link provided is really helpful. Regards, Anuruddha. On Fri, May 27, 2016 at 11:46 AM, Herwin Weststrate < herwin@quarantainenet.nl> wrote:
On 27-05-16 08:02, Herwin Weststrate wrote:
The parameter "p" to authenticate is the request key-value store, not the reply. This is documented at http://wiki.freeradius.org/modules/Rlm_python
Recall that, I just read your config snippet in the wrong order. Still, the wiki link explains how to add attributes in rlm_python.
But if you just need to fix some url encoding, there is a urlquote xlat that does exactly this. You could replace the python script with just this:
update reply { My-Redirection-URL := " http://my.org?clientmac=%{urlquote:Calling-Station-Id}&apmac=%{urlquote:Called-Station-Id}&ssid=Benu_Test " }
-- Herwin Weststrate - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- *Anuruddha Premalala (MIEEE)Mobile : +94717213122E-mail : anuruddhapremalal@gmail.com <anuruddhapremalal@gmail.com>web : www.anuruddha.org <http://www.anuruddha.org>Sri Lanka.*