rlm_perl multiple attributes in rad_reply was: Adding Multiple Cisco-AVPairs using rlm_perl

Boian Jordanov bjordanov at orbitel.bg
Wed Aug 25 23:23:33 CEST 2010


On Aug 22, 2010, at 3:06 PM, Alexander Kubatkin wrote:

> В сообщении от Воскресенье 22 августа 2010 10:48:56 автор Alan DeKok написал:
>> Alexander Kubatkin wrote:
>>> This isn't working, i'm trying to put 2 dns-servers in dhcp configuration
>>> like this:
>>> $RAD_REPLY{'DHCP-Domain-Name-Server'} = ["$ns1","$ns2"] ;

To return multiple items you have to use array ref.

Try this way. 

$data[0] = "nameserver_1";
$data[1] = "nameserver_2";

$data[2] = "nameserver_3";

$data[3] = "nameserver_x";


$RAD_REPLY{'DHCP-Domain-Name-Server'} = \@data;


Best Regards,
Boian Jordanov
Head of Voice Department
tel. +359 2 4004 723
tel. +359 2 4004 002










More information about the Freeradius-Users mailing list