read value of host-ip in perl-module (freeRADIUS 2.2.0)
27 Feb
2013
27 Feb
'13
9:46 a.m.
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
4879
Age (days ago)
4879
Last active (days ago)
0 comments
1 participants
participants (1)
-
Wolfgang Burger