Thanks Father.

All working fine now.

Thanks

Again Peter

Father Ramon wrote:
> You need to use "and", not or because you want to send the alert only of
> the atrribute is not company1 and not company2.
> --
>
> Father Ramon
>
>
> norrisp76@hotmail.com wrote:
>
>> Hi,
>>
>> We are trying to test the Company attribute, to ensure that it is correct
>>
>> (We use the COmpany Attribute to help set the DN in Active Directory)
>>
>> Currently we have put a policy in (see below for cut and paste.)
>>
>> We would like to have the condition NOT be met if the company name is
>> correct (THEREFORE THE RULE is ignored). However for example if the
>> Attribute COMPANY2 is used, the rule finds COMPANY1 first and sends an
>> alert as the Conditons HAVE been met, even though it is an OR rule and
>> COMPANY 2 is next on the list.
>>
>> Any help here would be great.
>>
>> Thanks
>>
>> <?xml version="1.0" encoding="UTF-8"?><policy>
>> <rule>
>> <description>Send An Alert IF Company Name is
>> incorrect</description>
>> <conditions>
>> <or>
>> <if-op-attr name="company" op="available"/>
>> </or>
>> <or>
>> <if-op-attr name="company" op="not-
>> equal">company1</if-op-attr>
>> <if-op-attr disabled="true" name="company"
>> op="not-equal">company2</if-op-attr>
>> <if-op-attr disabled="true" name="company"
>> op="not-equal">company3</if-op-attr>
>> </or>
>> </conditions>
>> <actions>
>> <do-generate-event id="1002" level="log-alert">
>>
>>