RLM_Perl not seeing huntgroup-name

Graeme Hinchliffe graeme.hinchliffe at zeninternet.co.uk
Mon May 19 13:11:42 CEST 2014

        I have done some further testing.  Fresh install of FreeRADIUS 2.1.12 (Debian package).  I have made only minor changes to the config (I added perl after preprocess in Authorization section of the default server, and added a testhuntgroup).

I have then added a small perl module which simply dumps the output of the lists passed to the module and exits with a NO-OP.  When I test an auth request against this I get the following output from freeradius -X

[preprocess]    expand: %{Client-IP-Address} ->
++[preprocess] returns ok
          'User-Name' => 'testuser at test',
          'User-Password' => 'testing',
          'Huntgroup-Name' => 'testhunt',
          'NAS-IP-Address' => ''
CHECK = $VAR1 = {};
REPLY = $VAR1 = {};
CONFIG = $VAR1 = {};
PROXY = $VAR1 = {};
PROXY REP = $VAR1 = {};
rlm_perl: Added pair User-Name = testuser at test
rlm_perl: Added pair User-Password = testing
rlm_perl: Added pair Huntgroup-Name = testhunt
rlm_perl: Added pair NAS-IP-Address =
++[perl] returns noop

So in this instance Huntgroup-Name *is* visible within the perl module as it was in FreeRADIUS 1.x.x  however something is stopping this from occurring on the test platform with the full config.

I am suspecting that for some reason it isn't assigning the Huntgroup to the request, although the test IP address has been assigned one in the huntgroup file, is there a way I could check what, if any hunt group is being selected?  Or do you have any ideas of what may suppress the Huntgroup from appearing in the attributes sent to RLM_Perl ?



-----Original Message-----
From: freeradius-users-bounces+graeme.hinchliffe=zeninternet.co.uk at lists.freeradius.org [mailto:freeradius-users-bounces+graeme.hinchliffe=zeninternet.co.uk at lists.freeradius.org] On Behalf Of Alan DeKok
Sent: 15 May 2014 15:16
To: FreeRadius users mailing list
Subject: Re: RLM_Perl not seeing huntgroup-name

Graeme Hinchliffe wrote:
>                 To confirm this I have added Data::Dumper and dumped
> the various structures and cannot see it anywhere. The RLM_PERL module
> is called after preprocess module which returns OK also.

  Huntgroup-Name is a virtual attribute.  You can compare it to something, but you can't read it's value.

  Alan DeKok.
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Graeme Hinchliffe
Senior Designer - Systems, Zen Internet
T: +441706902000
F: +441706902005
W: zen.co.uk

We have reduced our Business Talk SIP and SIP Connect call rates by up to 40%. http://www.zen.co.uk/business/voice/sip-trunking.aspx

This message is private and confidential. If you have received this message in error, please notify us and remove it from your system.

Zen Internet Limited may monitor email traffic data to manage billing, to handle customer enquiries and for the prevention and detection of fraud. We may also monitor the content of emails sent to and/or from Zen Internet Limited for the purposes of security, staff training and to monitor quality of service.

Zen Internet Limited is registered in England and Wales, Sandbrook Park, Sandbrook Way, Rochdale, OL11 1RY Company No. 03101568 VAT Reg No. 686 0495 01

More information about the Freeradius-Users mailing list