Passing Run-time variables in rlm_python module

work vlpl thework.vlpl at gmail.com
Fri Oct 12 18:10:51 CEST 2018


Hi,

I want to pass run-time variable
(https://wiki.freeradius.org/config/run_time_variables) into python
module.
In unlang run-time variables can be referenced without any attribute
lists, it looks like they stored in requests list, but it is not, so
they are not available in python module.
And because run-time variables does not support assignment, this
unlang construction is not possible

update request {
  Packet-Type := "%{Packet-Type}"
}

I define custom attribute and assign run-time variable value to it.
Is there other way to pass run-time variable into python module?

--
Vladimir


More information about the Freeradius-Users mailing list