different python module settings for different virtual hosts

Alan DeKok aland at deployingradius.com
Thu Oct 20 16:44:33 CEST 2011


Christoph Thielecke wrote:
> I use the python module which works fine. Now I have to setup a second virtual 
> host with different configuration of the python module.
> 
> How I can tell freeradius to have one python module with setup a and one with 
> setup b?
> 
> Is it possible to import a module with new name?

  Yes.  See raddb/modules/files for an example.

  In raddb/modules/python:

python foo {
	... config stuff ...
}

python bar {
	... other config stuff ...
}

  Then in virtual server one use "foo" instead of "python".  In virtual
server two use "bar" instead of "python".

  Alan DeKok.



More information about the Freeradius-Users mailing list