Hi all

I have the following challange


I have a file containing user information, each user is represented
once, but I need to create 2 user object in IDV, with same attributes
information
Object will be placed in seperate ou and diffirent naming

First object, is created just fine, with Set-dest-DN i Placement
policy.
After this I do a add destination object with a new generated DN, but
trace respond with:
Message: Code(-9010) An exception occurred:
novell.jclient.JCException: createEntry -609 ERR_MISSING_MANDATORY

I expect this has to do with the missing Surname information for user
object, due to other tids shoud this be possible just to assign
dest-attr-value after "do a add destination object"

I tried playing around with direct, after and before current operation,
but varios errors return.



All feedback is welcome

Idm version 4.0


My code
<rule>
<description>Unique Username Creation (Aftale Object)</description>
<conditions>
<and/>
</conditions>
<actions>
<do-if>
<arg-conditions>
<and>
<if-local-variable mode="nocase" name="ChkPersonObject"
op="equal">true</if-local-variable>
</and>
</arg-conditions>
<arg-actions>
<do-add-dest-object class-name="User" direct="true">
<arg-dn>
<token-global-variable name="idv.dit.data.useraftaler"/>
<token-upper-case>
<token-text xml:space="preserve">\</token-text>
<token-local-variable name="UniqueID"/>
<token-text xml:space="preserve">-</token-text>
<token-attr name="siteLocation"/>
</token-upper-case>
</arg-dn>
</do-add-dest-object>
<do-add-dest-attr-value class-name="User" name="surname"
when="after">
<arg-dn>
<token-global-variable name="idv.dit.data.useraftaler"/>
<token-text xml:space="preserve">\</token-text>
<token-local-variable name="UniqueID"/>
<token-text xml:space="preserve">-</token-text>
<token-attr name="siteLocation"/>
</arg-dn>
<arg-value type="string">
<token-text xml:space="preserve">Surname-Value</token-text>
</arg-value>
</do-add-dest-attr-value>
<do-add-dest-attr-value class-name="User" direct="true"
disabled="true" name="nspmDistributionPassword">
<arg-dn>
<token-global-variable name="idv.dit.data.useraftaler"/>
<token-text xml:space="preserve">\</token-text>
<token-local-variable name="UniqueID"/>
<token-text xml:space="preserve">-</token-text>
<token-attr name="siteLocation"/>
</arg-dn>
<arg-value type="string">
<token-text xml:space="preserve">xxxxx</token-text>
</arg-value>
</do-add-dest-attr-value>
</arg-actions>
<arg-actions/>
</do-if>
</actions>
</rule>


--
zedlitz
------------------------------------------------------------------------
zedlitz's Profile: http://forums.novell.com/member.php?userid=7781
View this thread: http://forums.novell.com/showthread.php?t=443534