Rewriting User-Name in pre-proxy
Alan DeKok
aland at deployingradius.com
Fri May 22 15:33:59 CEST 2009
William Taylor wrote:
> Hi Alan thanks for the response.
> I tried to use the perl module at first but the hash was read only. So I
> couldn't figure out how
> to get the value back into freeradius.
Huh? The arrays are read/write.
> Is it possible to do the same the with the perl module that I'm doing
> with the exec module ?
Yes.
> So far I have tried modifying the REQUEST hash from pre_proxy in perl
> and also tried
> printing out My-Local-String like I'm doing in exec. Neither seem to work.
The REQUEST hash is for the *request*. You are trying to edit the
*proxy* request. Use:
$RAD_REQUEST_PROXY{'Attr-name'} = "foo";
Alan DeKok.
More information about the Freeradius-Users
mailing list