edit RAD_REQUEST_PROXY_REPLY with perl

Alan DeKok aland at deployingradius.com
Thu Jan 22 19:20:40 CET 2009


Jeffrey Hutzelman wrote:
> Not entirely.  I read two non-Perl problems into this question...
> 
> (1) At least in the version I looked at, the comments in example.pl are
>    really not clear that the *_REPLY hashes are pre-populated with the
>    existing reply attributes and that these can be changed; it really
>    reads like the hash starts out empty and can only be used to add
>    attributes not already in the reply.

  Patches to clarify this are welcome.

> (2) The OP seems to be under the impression that a single attribute
>    can simultaneously have more than one value, which I didn't think
>    was the case.  If they can, then the question becomes, how, exactly,
>    are multi-valued attributes presented to the perl script?

  Attributes can have multiple values.  They are presented as arrays in
the hash table.

 i.e. two of "Vendor-Foo" means that $RAD_REQUEST{"Vendor-Foo"} is an array.

  Alan DeKok.



More information about the Freeradius-Devel mailing list