On Mar 18, 2006, at 7:13 AM, Alan DeKok wrote:

Boian Jordanov <[EMAIL PROTECTED]> 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.

--
George C. Kaplan                            [EMAIL PROTECTED]
Communication & Network Services            510-643-0496
University of California at Berkeley

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

Reply via email to