I would like to match all users with CN starts with "adm1" in the
placement rule.

Here is my policy :

<rule>
<description>Users is sysadmin </description>
<conditions>
<and>
<if-class-name op="equal">User</if-class-name>
<if-attr mode="regex" name="CN" op="equal">^adm1.*</if-attr>
</and>
</conditions>
<actions>
<do-set-op-dest-dn>
<arg-dn>
<token-text xml:space="preserve">LAB\Sysadmin</token-text>
<token-text xml:space="preserve">\</token-text>
<token-src-name/>
</arg-dn>
</do-set-op-dest-dn>
</actions>
</rule>

According to regex rules, this should work , but never work in IDM.

Eventually I used the regex expression : "adm1.*" which means that the
string contains " adm1" but not exactly starts with "adm1"

Anybody know how to do it ?

Thanks


--
sma
------------------------------------------------------------------------
sma's Profile: http://forums.novell.com/member.php?userid=22076
View this thread: http://forums.novell.com/showthread.php?t=334047