rlm_perl reply operators

2005-02-25 Thread Dustin Doris
Is there a way to specify different operators when adding something to the
$RAD_REPLY hash?

Such as.
$RAD_REPLY{'Attribute'} = "+= Value";

Thanks
Dusty Doris

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


Re: rlm_perl reply operators

2005-02-26 Thread Alexander M. Pravking
On Fri, Feb 25, 2005 at 02:26:12PM -0500, Dustin Doris wrote:
> Is there a way to specify different operators when adding something to the
> $RAD_REPLY hash?
> 
> Such as.
> $RAD_REPLY{'Attribute'} = "+= Value";

Currently, no. But you can try:
$RAD_REPLY{'Attribute'} = [ 'Value 1', 'Value 2' ];

I had an idea of making %RAD_* hashes tied to corresponding avp lists,
and making possible use of operators; I started to work on it, but I
have no time to finish it now :(


-- 
Fduch M. Pravking

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


Re: rlm_perl reply operators

2005-02-27 Thread Dustin Doris
On Sat, 26 Feb 2005, Alexander M. Pravking wrote:

> On Fri, Feb 25, 2005 at 02:26:12PM -0500, Dustin Doris wrote:
> > Is there a way to specify different operators when adding something to the
> > $RAD_REPLY hash?
> >
> > Such as.
> > $RAD_REPLY{'Attribute'} = "+= Value";
>
> Currently, no. But you can try:
> $RAD_REPLY{'Attribute'} = [ 'Value 1', 'Value 2' ];
>
> I had an idea of making %RAD_* hashes tied to corresponding avp lists,
> and making possible use of operators; I started to work on it, but I
> have no time to finish it now :(
>

Thanks for the reply.  I'll give what is above a shot for multi-valued
attributes.  For things such as := vs =, I can just build the login into
the perl script itself anyway.


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