James Nedila <j...@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 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html