Hi,

In eDirectory 8.8.2 and idm351
I am using uniqueName token to generate a unique employeeNumber in my
publisher create rule:

Code:
--------------------
<rule>
<description>Add employeeNumber</description>
<conditions>
<and>
<if-class-name mode="nocase" op="equal">User</if-class-name>
<if-op-attr name="NSCP:employeeNumber" op="available"/>
</and>
</conditions>
<actions>
<do-set-local-variable name="empID" scope="policy">
<arg-string>
<token-unique-name counter-digits="5" counter-pad="true" counter-pattern="last" counter-use="always" name="NSCP:employeeNumber" on-unavailable="error" scope="subtree">
<arg-dn>
<token-global-variable name="idm_person_root"/>
</arg-dn>
<arg-string>
<token-substring length="1">
<token-attr name="NSCP:employeeNumber"/>
</token-substring>
<token-text xml:space="preserve">00001</token-text>
</arg-string>
<arg-string>
<token-substring length="1">
<token-attr name="NSCP:employeeNumber"/>
</token-substring>
</arg-string>
</token-unique-name>
</arg-string>
</do-set-local-variable>
<do-set-src-attr-value name="NSCP:employeeNumber">
<arg-value>
<token-local-variable name="empID"/>
</arg-value>
</do-set-src-attr-value>
<do-reformat-op-attr name="NSCP:employeeNumber">
<arg-value>
<token-local-variable name="empID"/>
</arg-value>
</do-reformat-op-attr>
</actions>
</rule>
--------------------



When I do a massive migration of user, the uniqueName generate
duplicate values of employeeNumber... but not each time....
Example of value generated:
P00001
P00002
P00003
P00004
P00004
P00004
P00005

Any idea of the problem ?


--
_Certified_Novell_Technical_Identity_and_Security_ Specialist_
_Novell_Identity_and_Security_Gold_Partner_
------------------------------------------------------------------------
jibe-c's Profile: http://forums.novell.com/member.php?userid=22929
View this thread: http://forums.novell.com/showthread.php?t=359348