Ruslan A Dautkhanov <[EMAIL PROTECTED]> wrote:
> For unconditional change Nas-IP-Address to Client-IP-Address
Why?
> attr_rewrite set_real_nas_ip {
> attribute = NAS-IP-Address
> searchin = packet
> searchfor = "^.*$"
> replacewith = "%{Client-IP-Address}"
This is always wrong. You do NOT want to do this.
> But in authorize it's fail:
> Sat May 29 22:42:50 2004 : Debug: modsingle[authorize]: calling
> set_real_nas_ip (rlm_attr_re
> write) for request 2
> Sat May 29 22:42:50 2004 : Debug: radius_xlat: '^.*$'
> Sat May 29 22:42:50 2004 : Debug: radius_xlat: ''
> Sat May 29 22:42:50 2004 : Debug: rlm_attr_rewrite: xlat on replace
> string failed.
Odds are you listed it *before* "preprocess", or there was no
NAS-IP-Address in the packet.
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html