Would like to stop Interim Accounting being proxied

2012-06-28 Thread Steve Brown
Hi all, I need to stop proxying Interim Accounting for a particular domain on our legacy Freeradius 1.1.2 platform. Reading the unlang man page, I've tried: accounting { if ( (%{Acct-Status-Type} = Interim-Update) (%{User-Name} =~ /@domain/) ) { update control {

Re: Would like to stop Interim Accounting being proxied

2012-06-28 Thread Alan DeKok
Steve Brown wrote: Reading the unlang man page, I've tried: accounting { if ( (%{Acct-Status-Type} = Interim-Update) (%{User-Name} =~ /@domain/) ) { That's wrong on a number of levels. The documentation says you can just refer to an attribute by name. And use '==': if

Re: Would like to stop Interim Accounting being proxied

2012-06-28 Thread Steve Brown
Hi Alan, Thanks for the pointer. This is actually what I started with :( I still get the error Error: /etc/raddb/radiusd.conf[1433]: Line is not in 'attribute = value' format; line 1433 is this actual 'if ((' line. accounting { if ((Acct-Status-Type == Interim-Update) (User-Name =~

Re: Would like to stop Interim Accounting being proxied

2012-06-28 Thread Alan DeKok
Steve Brown wrote: Thanks for the pointer. This is actually what I started with :( I still get the error Error: /etc/raddb/radiusd.conf[1433]: Line is not in 'attribute = value' format; line 1433 is this actual 'if ((' line. It works for me. Check that you're using version 2? It looks

Re: Would like to stop Interim Accounting being proxied

2012-06-28 Thread Steve Brown
On 28/06/12 14:03, Alan DeKok wrote: Check that you're using version 2? It looks like you're using version 1. Unlang is only supported in version 2. I'm not, and that would explain it nicely; I mentioned in my initial message legacy Freeradius 1.1.2 platform. Is there any way of

Re: Would like to stop Interim Accounting being proxied

2012-06-28 Thread Steve Brown
On 28/06/12 14:34, Steve Brown wrote: Is there any way of achieving the same end result in v1.x without Unlang? If there was a way to simply respond to an accounting request with an 'Accept', like you can with Auth, could I do something like: acct_users: DEFAULT Acct-Status-Type ==

Re: Would like to stop Interim Accounting being proxied

2012-06-28 Thread Phil Mayers
On 28/06/12 17:13, Steve Brown wrote: On 28/06/12 14:34, Steve Brown wrote: Is there any way of achieving the same end result in v1.x without Unlang? If there was a way to simply respond to an accounting request with an 'Accept', like you can with Auth, could I do something like: You

Re: Would like to stop Interim Accounting being proxied

2012-06-28 Thread Alan DeKok
Steve Brown wrote: I'm not, and that would explain it nicely; I mentioned in my initial message legacy Freeradius 1.1.2 platform. Is there any way of achieving the same end result in v1.x without Unlang? Unlang isn't in 1.1.x, and is *documented* as not being in 1.1.x. You can't just try