I'm trying to put in a condition where a matching rule should be skipped
if the Internet Email Address is not equal to a blank value. I've tried
multiple regex expressions including the following:

<if-op-attr mode="regex" name="Internet EMail Address"
op="not-equal">.+</if-op-attr>

This failed to ignore a blank string so I decided to try and allow
anything with a @ sign through so I used this one:

<if-op-attr mode="regex" name="Internet EMail Address"
op="equal">@+</if-op-attr>

Neither worked. This is the output I saw when using the second one:

<output>
<instance class-name="User"
qualified-src-dn="O=BNY\OU=INTERNAL\CN=WSSVI0J"
src-dn="\WORKFORCE-TREE\BNY\INTERNAL\WSSVI0J" src-entry-id="83303">
<association state="pending"></association>
<attr attr-name="Internet EMail Address">
<value timestamp="1195828446#10"
type="string">svenkatraman@inautix.co.in</value>
</attr>
</instance>
<status level="success"></status>
</output>
</nds>
[04/08/08 06:55:56.034]:wkf-ad-pershingcom-nistpc01 ST: (if-attr
'Internet EMail Address' match "@+") = FALSE.
[04/08/08 06:55:56.034]:wkf-ad-pershingcom-nistpc01 ST: Rule
rejected.
[04/08/08 06:55:56.034]:wkf-ad-pershingcom-nistpc01 ST:Policy
returned:

You can see that the email has an @ symbol but the string check doesn't
match. Any ideas why?

Thanks.


--
ArtDunn
------------------------------------------------------------------------
ArtDunn's Profile: http://forums.novell.com/member.php?userid=9618
View this thread: http://forums.novell.com/showthread.php?t=323264