Le Mon, Oct 30, 2006 at 03:00:08PM +0200, Boian Jordanov ecrivait:
> On Monday 30 October 2006 12:52, Francois-Xavier GAILLARD wrote:
> > Hi list,
> >
> > I have 2 questions:
> >
> > 1/ I'll have to proxy auth requests to a client's home radius. He is just
> > allowed to check the user's username/password.
> > I know how to filter attributes using attrs and the post-proxy section of
> > radiusd.conf. But I don't know how to ADD attributes, like
> > Framed-IP-Address for example.
>
> To add attribute you have to put it in hash %RAD_REQUEST_PROXY_REPLY
> for example to return IP address say
> $RAD_REQUEST_PROXY_REPLY{'Framed-IP-Address' = "10.10.10.1"; This is for static values. I need to execute an SQL query based on the User-Name attribute. In fact I just discovered post_proxy_authorize in proxy.conf and it should do the job. > > Can't load '/usr/lib/perl/5.8/auto/Data/Dumper/Dumper.so' for module > > Data::Dumper: /usr/lib/perl/5.8/auto/Data/Dumper/Dumper.so: undefined > > symbol: Perl_sv_cmp at /usr/lib/perl/5.8/XSLoader.pm line 68. at > > /usr/lib/perl/5.8/Data/Dumper.pm line 27 > > Compilation failed in require at /usr/local/libexec/post-proxy.pl line 31. > > BEGIN failed--compilation aborted at /usr/local/libexec/post-proxy.pl line > > 31. > > > > Look at here http://bugs.freeradius.org/show_bug.cgi?id=236 Great, thanks a lot for this information. Regards, Fox.
signature.asc
Description: Digital signature
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

