How to access config parameters for rlm_perl

Alan DeKok aland at
Wed Feb 17 07:55:51 CET 2010

David Donn wrote:
> I want to set up some config parameters for use in my perl module. I
> think these are supposed to be in the RAD_CONFIG hash. But this hash
> always seems to be empty.

  That hash is per-request configuration.  i.e. authentication type, etc.

> My rlm_perl config file (from /etc/raddb/modules):
> perl example {
>         module = ${confdir}/
>         foo = bar
> }
> My perl code (
> use strict;
>     # doesn't print anything, expected it to print "module =
> /etc/raddb/" and "foo = bar"
>     foreach my $k (keys %RAD_CONFIG) {

  You cannot access the configuration files from rlm_perl.

  Try describing a problem rather than a solution.  Maybe there's
another solution that works.

  Alan DeKok.

More information about the Freeradius-Users mailing list