rlm_perl and accounting
Alan DeKok
aland at deployingradius.com
Tue Aug 29 11:59:58 CEST 2006
"Pshem Kowalczyk" <pshem.k at gmail.com> wrote:
> So I've compiled the source and gave it a try, but it behaved exactly
> as the stable version - didn't replace nor removed any attributes. Is
> this supposed to work?
> I tested the pre and post proxy methods:
...
> # Function to handle pre_proxy
> sub pre_proxy {
>
> &radiusd::radlog(1, "entering pre-proxy");
>
> $RAD_REQUEST{'User-Name'} = 'testuser';
You're re-writing the request packet (i.e. the one from the NAS),
not the packet that's about to be sent to the home server.
Try: $RAD_PROXY_REQUEST{'User-Name'} = 'testuser';
> # Function to handle post_proxy
> sub post_proxy {
>
> &radiusd::radlog(1, "entering post-proxy");
> $RAD_REPLY{'Framed-IP-Address'} = '10.10.1.1';
That works. The debug log you posted shows that in the reply.
Alan DeKok.
--
http://deployingradius.com - The web site of the book
http://deployingradius.com/blog/ - The blog
More information about the Freeradius-Users
mailing list