> I sent the post-proxy patch...you probably hadn't received it by the time > you sent this. Yes, I guess I was a little impatient, a bad attitude of me...
> I included a patch this time with the post-proxy() and accounting() > functions. Pay attention to the accounting function as it will mirror what > you are trying to do (unlike authorize()). rlm_attr_filter was not really Can you explain what you mean by that?
Well first, I didn't include post-proxy the second time...sorry 'bout that.
I just meant that in the accounting function...I didn't look at the request->reply->vps or the request->proxy_reply->vps. I worked with the request->packet->vps because instead of being concerned with what I was sending back the NAS, I was concerned with what I was forwarding to the remote server (so pre-proxy could have been used).
Another strange thing, if I dialin without a realm, that realm is added after the files section (Proxy-To-Realm =+ realmname). This works for authentication, but not for accounting. With pre-proxy an accounting packet the attr_filter returns 'ok'. In the users, as well as the acct_users file I have the Proxy-To-Realm item set.
Did you instantiate rlm_files in the preacct section (which is when it will use acct_users)?
I personally use rlm_realm in the preacct section to take care of proxy-stuff.
Chris
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
