Re: rlm_attr_rewrite question

2008-07-18 Thread Evgeniy Kozhuhovskiy
Alan DeKok wrote: if (proxy:NAS-IP-Address == 172.29.51.24) { update proxy { NAS-IP-Address := 172.26.64.100 } } It works, but instead of update proxy should be update proxy-request, and instead of proxy:NAS-IP-Address

rlm_attr_rewrite question

2008-07-17 Thread Evgeniy Kozhuhovskiy
I have some rewrites like this (in pre-proxy): attr_rewrite fixcboss6 { attribute = NAS-IP-Address searchin = proxy searchfor = 172.29.51.24 replacewith = 172.26.64.100 new_attribute = no

Re: rlm_attr_rewrite question

2008-07-17 Thread Alan DeKok
Evgeniy Kozhuhovskiy wrote: ... fixcboss6: Does not match: NAS-IP-Address = ╛?3? It's trying to do a regex match against the packed (32-bit) IP address, not against the ASCII string describing the IP address. That can easily be fixed. But in any case, you *don't* need to use attr_rewrite

Re: rlm_attr_rewrite question

2008-07-17 Thread Evgeniy Kozhuhovskiy
Alan DeKok wrote: It's trying to do a regex match against the packed (32-bit) IP address, not against the ASCII string describing the IP address. That can easily be fixed. But in any case, you *don't* need to use attr_rewrite for this. Just put the following into the pre-proxy section,