Adding Multiple Cisco-AVPairs using rlm_perl
Bjørn Mork
bjorn at mork.no
Wed Jan 20 00:29:54 CET 2010
James Nedila <jn at colonynetworks.com> writes:
> I have a rlm_perl script where i'd like to return multiple Cisco-AVPair
> attributes in an Access-Accept response.
>
> Since rlm_perl is passed hashes for RAD_REQUEST, RAD_CHECK, and RAD_REPLY,
> is there a way to pass an array as the value for the Cisco-AVPair hash key?
> If not, is there another way to do this?
Use an array ref as value. I.e
$RAD_REPLY{'Cisco-AVPair'} = [
'ip:inacl#1=permit udp any any eq 53',
'ip:inacl#2=permit tcp any any eq 80',
'ip:inacl#3=deny ip any any',
];
Bjørn
More information about the Freeradius-Users
mailing list