19 Jan
2010
19 Jan
'10
6:29 p.m.
James Nedila <jn@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