FW: SoH - FR 2.1.11

2011-07-14 Thread Palmer J.D.F.
Phil, It would seem I must have made a typo, Gareth has tried this again and due to his golden touch the array is now being evaluated. Sorry for the confusion. Cheers, Jezz. -Original Message- From: Ayres G.J. Sent: 14 July 2011 17:02 To: Palmer J.D.F. Subject: RE: SoH - FR 2.1.11 I

Re: SoH - FR 2.1.11

2011-07-14 Thread Phil Mayers
On 14/07/11 16:14, Phil Mayers wrote: On 14/07/11 15:59, Palmer J.D.F. wrote: Thanks Phil& Arran, I keep starting reply emails and another arrives before I get to send them. Hehe. I've tried array hack, that fails even with 'firewall' as the condition. if ("%{SoH-MS-Windows-Health-Status[*

Re: SoH - FR 2.1.11

2011-07-14 Thread Phil Mayers
On 14/07/11 15:59, Palmer J.D.F. wrote: Thanks Phil& Arran, I keep starting reply emails and another arrives before I get to send them. Hehe. I've tried array hack, that fails even with 'firewall' as the condition. if ("%{SoH-MS-Windows-Health-Status[*]}" =~ /firewall/), where as if (SoH-M

RE: SoH - FR 2.1.11

2011-07-14 Thread Palmer J.D.F.
t; Sent: 14 July 2011 15:45 > To: freeradius-users@lists.freeradius.org > Subject: Re: SoH - FR 2.1.11 > > On 14/07/11 15:24, Phil Mayers wrote: > > > I thought that the =~ regexp operator tried all attributes on the > > left-hand side; that is, I thought it looped through un

Re: SoH - FR 2.1.11

2011-07-14 Thread Arran Cudbard-Bell
On Jul 14, 2011, at 4:44 PM, Phil Mayers wrote: > On 14/07/11 15:24, Phil Mayers wrote: > >> I thought that the =~ regexp operator tried all attributes on the >> left-hand side; that is, I thought it looped through until it got >> first-match. >> >> If it doesn't, then the idea of squeezing all

Re: SoH - FR 2.1.11

2011-07-14 Thread Arran Cudbard-Bell
On Jul 14, 2011, at 4:39 PM, Phil Mayers wrote: > On 14/07/11 15:31, Arran Cudbard-Bell wrote: >>> >>> Example condition... if (SoH-MS-Windows-Health-Status =~ /antivirus (warn|error) /) { >> >> I'm not sure alternate submatches are supported. > > I'm fairly sure they are; we

Re: SoH - FR 2.1.11

2011-07-14 Thread Phil Mayers
On 14/07/11 15:24, Phil Mayers wrote: I thought that the =~ regexp operator tried all attributes on the left-hand side; that is, I thought it looped through until it got first-match. If it doesn't, then the idea of squeezing all the SoH data into a multiple instances of a single text attribute

Re: SoH - FR 2.1.11

2011-07-14 Thread Phil Mayers
On 14/07/11 15:31, Arran Cudbard-Bell wrote: Example condition... if (SoH-MS-Windows-Health-Status =~ /antivirus (warn|error) /) { I'm not sure alternate submatches are supported. I'm fairly sure they are; we use them locally. - List info/subscribe/unsubscribe? See http://www.freeradius.o

Re: SoH - FR 2.1.11

2011-07-14 Thread Arran Cudbard-Bell
> > >> >> Example condition... >> if (SoH-MS-Windows-Health-Status =~ /antivirus (warn|error) /) { I'm not sure alternate submatches are supported. Could you try: if ((SoH-MS-Windows-Health-Status =~ /antivirus warn/) || (SoH-MS-Windows-Health-Status =~ /antivirus error/)) Just to make sure

Re: SoH - FR 2.1.11

2011-07-14 Thread Phil Mayers
On 14/07/11 14:30, Palmer J.D.F. wrote: Hi, We've started to look at SoH with the intention to implement it for the new academic session in September, but are having an issue. Cool (I wrote it) The server is setup using the example soh-server, but find that the condition in the example (bel

SoH - FR 2.1.11

2011-07-14 Thread Palmer J.D.F.
Hi, We've started to look at SoH with the intention to implement it for the new academic session in September, but are having an issue. The server is setup using the example soh-server, but find that the condition in the example (below) isn't being satisfied when a client with no AV returns it's