Wipe existing reply attributes in rlm_files

2010-10-02 Thread Brian Candler
Hello, I'm using freeradius 2.1.7. I would like to know if there's a simple way, within a users file, to *replace* the entire set of reply attributes with some others. For example, NONEFoo = bar, Baz = bap # FIXME: delete all reply attributes which have accumulated so far

Re: Wipe existing reply attributes in rlm_files

2010-10-02 Thread Phil Mayers
On 10/02/2010 10:07 AM, Brian Candler wrote: Hello, I'm using freeradius 2.1.7. I would like to know if there's a simple way, within a users file, to *replace* the entire set of reply attributes with some others. For example, I don't think so. My current solution is very messy, using two

Re: Wipe existing reply attributes in rlm_files

2010-10-02 Thread Brian Candler
Why don't you just do whatever if() logic before adding the attributes? It's complicated :-) Partly it's policy. We configure as much of this logic in users files as possible, because they can be updated without needing to restart radiusd. But in future it will be a necessity. The project I'm

Re: Wipe existing reply attributes in rlm_files

2010-10-02 Thread Alan DeKok
Brian Candler wrote: Partly it's policy. We configure as much of this logic in users files as possible, because they can be updated without needing to restart radiusd. That's what databases are for. And the virtual servers are reloaded on HUP, too, just like the users file. But in future

Re: Wipe existing reply attributes in rlm_files

2010-10-02 Thread Phil Mayers
On 10/02/2010 11:05 AM, Brian Candler wrote: Why don't you just do whatever if() logic before adding the attributes? It's complicated :-) Partly it's policy. We configure as much of this logic in users files as possible, because they can be updated without needing to restart radiusd. The