Export Huntgroup and User Files

Brian Candler B.Candler at pobox.com
Tue Feb 19 13:58:21 CET 2013

On Tue, Feb 19, 2013 at 11:11:01AM +0100, Patrick Ko wrote:
>    is it possible to export the Huntgroups and User Files maybe inside an
>    Module ?

Why? Whatever it is you're trying to do, you're probably going about it the
wrong way.

Modules are basically independent of each other. You can also have multiple
instantiations of the same module, e.g. for two instances of rlm_files:

files foo {
    usersfile = ${confdir}/foo

files bar {
    usersfile = ${confdir}/bar

Modules *can* cooperate with each other if necessary: see for example
rlm_rediswho which uses an instance of rlm_redis.

I suggest you probably need to understand more of the basic operation of
freeradius before you start writing modules for it.  If you need heavy
customisation it still may be easier to use rlm_perl or rlm_python rather
than coding in C.



More information about the Freeradius-Devel mailing list