Use python module to inject parameters to radius context
Herwin Weststrate
herwin at quarantainenet.nl
Fri May 27 08:16:02 CEST 2016
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
More information about the Freeradius-Users
mailing list