Hi

I am configuring an edir to edir driver, and I am trying move users
between containers when the contents of one of the fields change.

The same conditions will determine which container a user should reside so
I have created number of variables in the Input section XML is below and
derived the Destination DN.

I had then intended to use the variable DestDN to set the DN for both
additions and moves. This works fine for adds but not for moves, I have
included both XML below. It appears as if the DestDN variable has no value
when it reaches the command stage. The error I get in DSTrace is

eDirectory Driver ST:
DirXML Log Event -------------------
Driver: GMIDMGMITIDM LinDriverSeteDirectory Driver
Channel: Subscriber
Object: GMIDMGMITGMSTUDENT10000393
Status: Error
Message: Code(-9145) Error in
vnd.nds.stream://GMTREE/GMIT/GW/Driver+Set/eDirectory+Driver/Publisher/Move+User#XmlData:17
: Unable to determine target object for action
'do-move-dest-object(when="after",arg-dn(token-local-variable("DestDN")))'.<application>DirXML</application>
<module>eDirectory Driver</module>
<object-dn>GMIDMGMITGMSTUDENT10000393
(GMITGWSCISTUDHCOED_XGA_Y110000393)</object-dn>
<component>Publisher</component>


Is there a limit to the scope of local variables I have set it to driver.

Cheers,

Aiden


/******************************* set variables in Input section**********

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE policy PUBLIC
"policy-builder-dtd" "C:Program
FilesNovellDesignereclipsepluginscom.novell.design er.idm.policybuilder_2.0.0.200706201206DTDdirxmlsc ript.dtd"><policy>
<rule>
<description>Users/Groups</description>
<conditions>
<or>
<if-class-name op="equal">User</if-class-name>
</or>
<or>
<if-op-attr name="OU" op="available"/>
</or>
</conditions>
<actions>
<do-set-local-variable name="ShortenProgCode" scope="policy">
<arg-string>
<token-substring length="-1" start="3">
<token-op-attr name="OU"/>
</token-substring>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="Campus" scope="driver">
<arg-string>
<token-substring length="2" start="-2">
<token-op-attr name="OU"/>
</token-substring>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="DestDN" scope="driver">
<arg-string>
<token-text xml:space="preserve">GMITGWSCISTUD</token-text>
<token-local-variable name="ShortenProgCode"/>
<token-text xml:space="preserve">_</token-text>
<token-op-attr name="company"/>
<token-text xml:space="preserve"></token-text>
<token-src-name/>
</arg-string>
</do-set-local-variable>
</actions>
</rule>
</policy>

/*************************** Place rule that works ************************

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE policy PUBLIC
"policy-builder-dtd" "C:Program
FilesNovellDesignereclipsepluginscom.novell.design er.idm.policybuilder_2.0.0.200706201206DTDdirxmlsc ript.dtd"><policy>
<rule>
<description>Set Campus</description>
<conditions>
<and>
<if-local-variable mode="nocase" name="Campus"
op="equal">GA</if-local-variable>
</and>
</conditions>
<actions>
<do-set-op-dest-dn>
<arg-dn>
<token-local-variable name="DestDN"/>
</arg-dn>
</do-set-op-dest-dn>
</actions>
</rule>
</policy>


/************************ Command - Move user (not working)

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE policy PUBLIC
"policy-builder-dtd" "C:Program
FilesNovellDesignereclipsepluginscom.novell.design er.idm.policybuilder_2.0.0.200706201206DTDdirxmlsc ript.dtd"><policy>
<rule>
<description>Modify Container</description>
<conditions>
<and>
<if-operation mode="case" op="equal">modify</if-operation>
<if-class-name mode="nocase" op="equal">User</if-class-name>
<if-op-attr name="OU" op="changing"/>
</and>
<and>
<if-operation mode="case" op="equal">modify</if-operation>
<if-class-name mode="nocase" op="equal">User</if-class-name>
<if-op-attr name="company" op="changing"/>
</and>
</conditions>
<actions>
<do-move-dest-object disabled="true" when="after">
<arg-dn>
<token-text xml:space="preserve">GMITGWSCISTUD</token-text>
</arg-dn>
</do-move-dest-object>
<do-move-dest-object when="after">
<arg-dn>
<token-text xml:space="preserve">Local Variable("DestDN")</token-text>
</arg-dn>
</do-move-dest-object>
<do-set-op-dest-dn disabled="true">
<arg-dn>
<token-local-variable name="DestDN"/>
</arg-dn>
</do-set-op-dest-dn>
</actions>
</rule>
</policy>