situation:
AD-user deletes are not mirrored in eDirectory. the event should result
in disabling and removing of that driverīs association (edir
user-object).

here iīm interested in checking on occurence of a delete-event in AD on
non-associated users if that user-object in eDir is already disabled .
in case the user is still logindisabled!=true the account should be
disabled in eDir. for the modify of the "Login Disabled" Attribute in
eDirectory i need an association in advance, so i did three direct
commands to get the user disabled and veto the operation after that.

this is working, but could that be done any nicer?


Code:
--------------------
<do-add-association direct="true" when="direct">
<arg-dn>
<token-text xml:space="preserve">\</token-text>
<token-global-variable name="gcv_myTree"/>
<token-text xml:space="preserve">\something\</token-text>
<token-global-variable name="gcv-2"/>
<token-text>\</token-text>
<token-local-variable name="var_stripped_src_dn"/>
</arg-dn>
<arg-association>
<token-association/>
</arg-association>
</do-add-association>
<do-set-dest-attr-value name="Login Disabled" class-name="User" direct="true" when="direct">
<arg-value>
<token-text>true</token-text>
</arg-value>
</do-set-dest-attr-value>
<do-remove-association direct="true" when="direct">
<arg-association>
<token-association/>
</arg-association>
</do-remove-association>
<do-trace-message color="blue" level="0">
<arg-string>
<token-text>User Deletion in AD on non-associated eDir-User: logindisabled on CN: </token-text>
<token-local-variable name="var_stripped_src_dn"/>
<token-text> is set to "true"</token-text>
</arg-string>
</do-trace-message>
<do-veto/>
--------------------



var_stripped_src_dn is CN: <token-xpath
expression="substring-before(substring-after($var_src_dn,'CN='),'\')"/>
from <delete event-id="driverxyz##125d9ebad51##0"
src-dn="CN=user1\0ADEL:d9d3787c-8126-47e8-a1a4-6ef1e67f472f,CN=Deleted
Objects,DC=DC1">. eg: 'user1'


thanks in advance, florian


--
florianz
------------------------------------------------------------------------
florianz's Profile: http://forums.novell.com/member.php?userid=210
View this thread: http://forums.novell.com/showthread.php?t=396878