SoH - FR 2.1.11
Phil Mayers
p.mayers at imperial.ac.uk
Thu Jul 14 16:44:34 CEST 2011
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 is going to need
> revisiting (or the "foreach" unlang operator will need backporting!)
Damn. You're right. It just looks at the first attribute.
Erm.... Hmm. That's a problem. It makes checking the attributes really
painful. Blast. Sorry about that.
Maybe try this, which is a horrible hack:
if ("%{SoH-MS-Windows-Health-Status[*]}" =~ /antivirus (warn|error)/) {
...
}
More information about the Freeradius-Users
mailing list