proxy + rlm_perl question

Francois-Xavier GAILLARD fx.gaillard at thefox.com.fr
Mon Oct 30 17:28:58 CET 2006


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20061030/60d8ef2f/attachment.pgp>


More information about the Freeradius-Users mailing list