sql_log inside virtual servers

Leon Kyneur leon at dexterous.org
Wed Jul 9 11:15:20 CEST 2008


On Wed, Jul 9, 2008 at 5:03 PM, Alan DeKok <aland at deployingradius.com> wrote:
> Leon Kyneur wrote:
>> I'm trying to configure my virtual servers to have different sql_log
>> queries and having some difficulty specifying the queries within the
>> server { } block
>
>  You don't.  The modules are defined in the "modules" section of the
> configuration file  (raddb/modules)
>
>> redefining sql_log { Start, Stop, Alive etc.. }
>> parameters within each virtual server instance.
>>
>> Is this supported? Or can they only be set on a global basis?
>
>  You can create multiple copies of the sql_log module, and use a named
> copy in a virtual server.
>
> sql_log foo {
>        ... config ..
> }
> sql_log bar {
>        ... config ...
> }
>
> server one {
> accounting {
>        ...
>        foo
>        ...
> }
> }
>
>  i.e. give them unique names (sql_log foo), and the refer to them in
> the virtual server as "foo", and not "sql_log".

Ah! I knew it would be something so simple. Thanks Alan.



More information about the Freeradius-Users mailing list