Use python module to inject parameters to radius context

Anuruddha Premalal anuruddhapremalal at gmail.com
Fri May 27 09:33:51 CEST 2016


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 at 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 at gmail.com <anuruddhapremalal at gmail.com>web      :
www.anuruddha.org <http://www.anuruddha.org>Sri Lanka.*


More information about the Freeradius-Users mailing list