Setting Client-IP-Address in rlm_preprocess
John Morrissey
jwm at horde.net
Thu Sep 3 01:37:04 CEST 2009
Client-IP-Address is dynamically set by xlat_packet(). AFAICT, there's no
way to trigger this in rlm_perl, so Client-IP-Address is never available in
rlm_perl handlers.
This leads to some interesting unlang to set Client-IP-Address in the
request so rlm_perl can access it:
authorize {
update request {
Client-IP-Address := "%{Client-IP-Address}"
}
}
rlm_preprocess sets NAS-IP-Address if it's not set. Alan, would you accept a
patch to add similar behavior for Client-IP-Address?
john
--
John Morrissey _o /\ ---- __o
jwm at horde.net _-< \_ / \ ---- < \,
www.horde.net/ __(_)/_(_)________/ \_______(_) /_(_)__
More information about the Freeradius-Devel
mailing list