Access Request Configuraton Attributes in Module-Configuration
g4-lisz at tonarchiv.ch
g4-lisz at tonarchiv.ch
Tue Sep 22 22:50:01 CEST 2020
On 09.09.20 21:53, g4-lisz at tonarchiv.ch wrote:
> Hi everyone
>
> I wonder if I can access the configuration attributes of a request in
> the module configuration.
>
> I.e. in the code a configuration attribute is set like this:
>
> pair_make_config("Custom-My-Attrib", "Some value, T_OP_ADD);
>
> It would be nice if i could access this in a configuration file, so it
> can be expanded in a string:
>
> my_module {
>
> some_param = "foobar-%{???:Custom-My-Attrib}"
>
> }
>
> Is something like this possible?
By the way, the solution was:
some_param = "foobar-%{control:Custom-My-Attrib}"
I.e. what is request->config in the API is "control" in xlat.
More information about the Freeradius-Users
mailing list