How to Pass multiple Attribute Value Pair of Same Name.

Chris Knipe savage at savage.za.org
Tue Apr 28 08:59:26 CEST 2015


>
> when i pass single Attribute to perl script like ie. ( $RAD_CHECK{'
> Account-Info'} ) .i can get all the values of this variable available in
> the perl for processing.
>
> but when i am trying to pass multiple variable of same name i am not
> getting those values pass to perl script.
>
>
You push them into a array...

push(@avpairs,'ip:dns-servers=$dns1 $dns2');
push(@avpairs,"ip:route=$$thisroute{network} $$thisroute{subnet}");
$RAD_REPLY{'Cisco-AVPair'}=\@avpairs;

Another one of those undocumented rlm_perl magic 'this is just how it
works' things :-)


More information about the Freeradius-Users mailing list