Hey all,

Still plugging away at this Notes driver. I have run into the issue of
handling accounts with the same First Name and Last Name.

I have created a rule in my placement policy using Unique Name but it
doesn't seem to be working. It increments when I use the local variable
to set the Shortname, but refuses to set the User name(Full name) to the
incremented value.

Any help would be greatly appreciated.

Here is the policy:
-------------------------------------------------------------------
<policy>
<rule disabled="true">
<description>Default User Placement</description>
<conditions>
<and>
<if-class-name mode="nocase" op="equal">User</if-class-name>
<if-global-variable name="account.cert.DefaultTypedName"
op="available"/>
<if-global-variable name="account.cert.DefaultTypedName"
op="not-equal"/>
<if-src-dn
op="in-subtree">\~dirxml.auto.treename~\~idv.dit.data.use rs~</if-src-dn>
</and>
</conditions>
<actions>
<do-set-op-dest-dn>
<arg-dn>
<token-text xml:space="preserve">CN=</token-text>
<token-src-name/>
<token-global-variable name="account.cert.DefaultTypedName"/>
</arg-dn>
</do-set-op-dest-dn>
<do-break/>
</actions>
</rule>
<rule disabled="true">
<description>Default Group Placement</description>
<conditions>
<and>
<if-class-name mode="nocase" op="equal">Group</if-class-name>
<if-src-dn op="in-subtree">~idv.dit.data.users~</if-src-dn>
</and>
</conditions>
<actions>
<do-set-op-dest-dn>
<arg-dn>
<token-text xml:space="preserve">CN=</token-text>
<token-src-name/>
</arg-dn>
</do-set-op-dest-dn>
<do-break/>
</actions>
</rule>
<rule>
<description>Default User Placement</description>
<conditions>
<and>
<if-class-name mode="nocase" op="equal">User</if-class-name>
<if-global-variable name="account.cert.DefaultTypedName"
op="available"/>
<if-global-variable name="account.cert.DefaultTypedName"
op="not-equal"/>
<if-src-dn
op="in-subtree">\~dirxml.auto.treename~\~idv.dit.data.use rs~</if-src-dn>
</and>
</conditions>
<actions>
<do-set-local-variable name="local.uniqueFullname">
<arg-string>
<token-unique-name counter-digits="2" counter-pad="false"
name="Full Name" scope="subtree">
<arg-string>
<token-attr name="Given Name"/>
<token-text xml:space="preserve"> </token-text>
<token-attr name="Surname"/>
</arg-string>
</token-unique-name>
</arg-string>
</do-set-local-variable>
<do-set-op-dest-dn>
<arg-dn>
<token-text xml:space="preserve">CN=</token-text>
<token-local-variable name="local.uniqueFullname"/>
<token-global-variable name="account.cert.DefaultTypedName"/>
</arg-dn>
</do-set-op-dest-dn>
<do-break/>
</actions>
</rule>
</policy>


--
brembold
------------------------------------------------------------------------
brembold's Profile: http://forums.novell.com/member.php?userid=4186
View this thread: http://forums.novell.com/showthread.php?t=350476