rlm_perl question (was Re: General question about authentication/authorization)

Boian Jordanov bjordanov at orbitel.bg
Sat Mar 18 23:01:02 CET 2006


On Saturday 18 March 2006 21:40, George C. Kaplan wrote:
> On Mar 18, 2006, at 7:13 AM, Alan DeKok wrote:
> > Boian Jordanov <bjordanov at orbitel.bg> wrote:
> >> So, why were %RAD_CHECK and %RAD_REQUEST
> >>
> >>> made read-only?
> >>
> >> Because perl hashes are not ordered.
> >
> >   The only requirement is that attributes of the same name be ordered.
> >
> >   This may change the way the module works (I haven't looked), but if
> > ${RAD_REQUEST}{'attribute'} was an array of values rather than a
> > scalar, that should allow the hash to be writable.
>
> That is how the module works for multi-valued attributes:  $
> {RAD_REQUEST}{'attribute'} is a ref to an array.
>
> For single-valued attributes, it's just the attribute value.  So
> you'd have to be careful if you're adding values to an attribute that
> starts out with a single value, but it sounds like it should work.

It will be easy to change RAD_XXX to become writable then.


-- 
Best Regards,
Boian Jordanov
SNE
Orbitel - Next Generation Telecom
tel. +359 2 4004 723
tel. +359 2 4004 002



More information about the Freeradius-Users mailing list