read value of host-ip in perl-module (freeRADIUS 2.2.0)

Wolfgang Burger burgerw at ie-freiburg.mpg.de
Wed Feb 27 15:46:43 CET 2013


> > How (if at all) can I access the value of "host" (10.1.4.82 in the
> > example above) from within the perl-module?
>
> Phil Mayers p.mayers at imperial.ac.uk wrote:
>
> There is a "virtual" attribute Client-IP-Address, that you can copy  
> to a
> temporary attribute before calling the perl module e.g.
>
> authorize {
>   ...
>   update request {
>     Tmp-IP-Address-0 := "%{Client-IP-Address}"
>   }
>   myperl
>   ...
> }

Many thanks to Alan and especially Phil for the detailed explanation.

Best,
  Wolfgang




More information about the Freeradius-Users mailing list