I have a Null Driver that performs two tasks: Rename Users and
Terminate Users. I want to assign a job to each so that the Rename
Users runs Monday through Friday and the Terminate Users runs every
day.

I created a job, "Termination Job" and added an if statement to the
Terminate Users policy to see if the trigger document is from the
Termination Job.

It is evaluating to "true", however, I am getting the following error:

<output>
<status level="retry">Code(-9011) eDirectory returned an error
indicating that the operation should be retried later:
novell.jclient.JCException: initVlistIterator -635
ERR_REMOTE_FAILURE</status>
</output>

From what I can tell, the error is due to not being able to resolve the
host. I believe the ./@event-id portion of my if statement is the
problem, but I don't know how to correct it.

I would appreciate any help in getting me on the right track.

Thank you!


Here is the code I am using:

<rule>
<description>Query for Terminated Users and Set LoginDisabled =
True</description>
<conditions>
<and>
<if-xpath op="true">contains(./@event-id,'trigger-job:Termination
Job')</if-xpath>
<if-op-property name="source" op="available"/>
</and>
</conditions>
<actions>
<do-trace-message level="2">
<arg-string>
<token-text xml:space="preserve">Query ID Vault for terminated
users</token-text>
</arg-string>
</do-trace-message>
<do-for-each>
<arg-node-set>
<token-query class-name="User" datastore="src">
<arg-dn>
<token-text xml:space="preserve">IDVAULT\USERS</token-text>
</arg-dn>
<arg-match-attr name="employeeStatus">
<arg-value>
<token-text xml:space="preserve">T</token-text>
</arg-value>
</arg-match-attr>
<arg-match-attr name="loginddisabled">
<arg-value>
<token-text xml:space="preserve">False</token-text>
</arg-value>
</arg-match-attr>
</token-query>
</arg-node-set>
<arg-actions>
<do-set-local-variable name="LVDN" scope="policy">
<arg-string>
<token-xpath expression="$current-node/@src-dn"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="LVDisabledUser">
<arg-node-set>
<token-src-attr name="Full Name">
<arg-dn>
<token-local-variable name="LVDN"/>
</arg-dn>
</token-src-attr>
</arg-node-set>
</do-set-local-variable>
<do-set-local-variable name="LVDisabledEmpID">
<arg-node-set>
<token-src-attr name="workforceID">
<arg-dn>
<token-local-variable name="LVDN"/>
</arg-dn>
</token-src-attr>
</arg-node-set>
</do-set-local-variable>
<do-set-src-attr-value name="Login Disabled">
<arg-dn>
<token-local-variable name="LVDN"/>
</arg-dn>
<arg-value type="string">
<token-text xml:space="preserve">true</token-text>
</arg-value>
</do-set-src-attr-value>
<do-trace-message level="2">
<arg-string>
<token-text xml:space="preserve">The logindisabled attribute for
</token-text>
<token-local-variable name="LVDisabledUser"/>
<token-text xml:space="preserve">, employee ID: </token-text>
<token-local-variable name="LVDisabledEmpID"/>
<token-text xml:space="preserve"> has been set to
"true".</token-text>
</arg-string>
</do-trace-message>
</arg-actions>
</do-for-each>
</actions>
</rule>


--
cj_hayes
------------------------------------------------------------------------
cj_hayes's Profile: http://forums.novell.com/member.php?userid=5206
View this thread: http://forums.novell.com/showthread.php?t=345786