[RADIATOR] Change attribute value that send to proxy
eliran shlomo
eliranshlomo at gmail.com
Mon Aug 6 03:05:09 CDT 2012
hi,
found the solution with
PreAuthHook file:"%{GlobalVar:CONFIGROOT}/include/proxyhook.pl"
works as i wanted :)
thanks for the idea and the guide to that point :)
2012/8/6 Heikki Vatiainen <hvn at open.com.au>
> On 08/05/2012 05:42 PM, eliran shlomo wrote:
>
> > hi so i'll need to do
> > StripFromRequest RB-Context-Name
> > and then
> > AddToRequest RB-Context-Name=value
> >
> > but it could be a perl code? because i'll need to put if in there
>
> You can use PreProcessingHook inside the Handler to do it with code. The
> hook will run before AuthBy RADIUS is called.
>
> If possible, please keep a copy messages on radiator mailing list too :)
>
> Thanks,
> Heikki
>
>
> > 2012/8/2 Heikki Vatiainen <hvn at open.com.au <mailto:hvn at open.com.au>>
> >
> > On 08/02/2012 03:45 PM, eliran shlomo wrote:
> >
> > > i need to change the value of attribute in the Access-Accept
> > packet that
> > > sends to the proxy radius.
> >
> > Try using 'StripFromRequest RB-Context-Name' with the Handler.
> Something
> > like this:
> >
> > <Handler or Realm ...>
> > StripFromRequest RB-Context-Name
> > <AuthBy RADIUS>
> > # Proxying done here
> > </AuthBy>
> > </Handler or Realm>
> >
> > > i figure out that i need to use ReplyHook
> > > but can you point me how to do it?
> > > i tried this one
> >
> > ReplyHook runs when the reply is received from the proxy. The hook
> will
> > modify the request sent to proxy, but it will do it too late. The
> > request was already sent.
> >
> > Thanks,
> > Heikki
> >
> > > sub
> > > {
> > > my $p = ${$_[0]}; # proxy reply packet
> > > my $rp = ${$_[1]}; # reply packet to NAS
> > > my $op = ${$_[2]}; # original request packet
> > > my $sp = ${$_[3]}; # packet sent to proxy
> > >
> > > my $code = $p->code;
> > >
> > > if ($code eq 'Access-Accept')
> > > {
> > > $sp->delete_attr('RB-Context-Name');
> > > }
> > >
> > > return;
> > > }
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > radiator mailing list
> > > radiator at open.com.au <mailto:radiator at open.com.au>
> > > http://www.open.com.au/mailman/listinfo/radiator
> > >
> >
> >
> > --
> > Heikki Vatiainen <hvn at open.com.au <mailto:hvn at open.com.au>>
> >
> > Radiator: the most portable, flexible and configurable RADIUS server
> > anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
> > Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP,
> TLS,
> > TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
> > DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS,
> > NetWare etc.
> > _______________________________________________
> > radiator mailing list
> > radiator at open.com.au <mailto:radiator at open.com.au>
> > http://www.open.com.au/mailman/listinfo/radiator
> >
>
>
> --
> Heikki Vatiainen <hvn at open.com.au>
>
> Radiator: the most portable, flexible and configurable RADIUS server
> anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
> Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
> TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
> DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS,
> NetWare etc.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.open.com.au/pipermail/radiator/attachments/20120806/0158b899/attachment.html
More information about the radiator
mailing list