Re: rlm_perl and returning 1 attribute with same name

2012-02-20 Thread Johan Meiring

On 2012/02/17 02:38 PM, Mike wrote:

Hello,

I am using rlm_perl and I have an application where I would like to return
possibly more than 1 Filter-Id in my response.

In perl, the relevent code would be this:

$RAD_REPLY{'Filter-Id'} = some_filter

Unfortunately, this also will only create 1 avpair by the name 'Filter-Id'.

How would I go about returning more than 1 or am I stuck because of perl?




I have an array with my Framed-Routes
I then do the following:

$RAD_REPLY{'Framed-Route'} = \@framedroutearray;

--


Johan Meiring
Cape PC Services CC
Tel: (021) 883-8271
Fax: (021) 886-7782


Before acting on this email or opening any attachments
you should read Cape PC Service's email disclaimer at:

http://www.pcservices.co.za/disclaimer.html

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


rlm_perl and returning 1 attribute with same name

2012-02-17 Thread Mike

Hello,

I am using rlm_perl and I have an application where I would like to 
return possibly more than 1 Filter-Id in my response.


In perl, the relevent code would be this:

$RAD_REPLY{'Filter-Id'} = some_filter

Unfortunately, this also will only create 1 avpair by the name 'Filter-Id'.

How would I go about returning more than 1 or am I stuck because of perl?

Mike-

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: rlm_perl and returning 1 attribute with same name

2012-02-17 Thread Pavel Klachan
Hello.
I really don't think that you need to return more than one filter-id.
As i know its impossible to map some acl to one interface. Anyway, you
can use an array, e.g. $RAD_REPLY{'Filter-Id'} = [1,2,3]

17.02.2012, в 17:12, Mike mike-freerad...@tiedyenetworks.com написал(а):

 Hello,

 I am using rlm_perl and I have an application where I would like to return 
 possibly more than 1 Filter-Id in my response.

 In perl, the relevent code would be this:

 $RAD_REPLY{'Filter-Id'} = some_filter

 Unfortunately, this also will only create 1 avpair by the name 'Filter-Id'.

 How would I go about returning more than 1 or am I stuck because of perl?

 Mike-

 -
 List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html