Cybersecurity
DevOps Cloud (ADM)
IT Operations Cloud
<nds dtdversion="2.0" ndsversion="8.x">
<source>
<product build="20070918_0802 " instance="Notes" version="3.5.1">Identity Manager Driver for Lotus Notes</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<delete class-name="Unknown" event-id="95A0E4DB580BA8F78525740A00661234 - 1205348266937">
<association state="associated">95A0E4DB580BA8F78525740A00661234</association>
</delete>
</input>
</nds>
<rule>
<description>Convert Deletes in Lotus Notes to remove association in IDV</description>
<comment xml:space="preserve">Delete in Notes means remove association in IDV and disable the user in IDV. Take note that the class must be User so we do not veto too many other things. It is good to scope things.</comment>
<conditions>
<and>
<if-class-name mode="nocase" op="equal">User</if-class-name>
<if-operation op="equal">delete</if-operation>
</and>
</conditions>
<actions>
<do-add-dest-attr-value direct="true" name="Login Disabled">
<arg-value type="string">
<token-text xml:space="preserve">true</token-text>
</arg-value>
</do-add-dest-attr-value>
<do-remove-association direct="true">
<arg-association>
<token-association/>
</arg-association>
</do-remove-association>
<do-veto/>
</actions>
</rule>
<if-class-name mode="nocase" op="equal">User</if-class-name>
<rule>
<description>Convert Deletes in Lotus Notes to remove association in IDV</description>
<comment xml:space="preserve">Delete in Notes means remove association in IDV and disable the user in IDV.</comment>
<conditions>
<and>
<if-operation op="equal">delete</if-operation>
<if-association op="associated"/>
</and>
</conditions>
<actions>
<do-set-local-variable name="AssociatedObjectClass" scope="policy">
<arg-string>
<token-resolve datastore="dest">
<arg-association>
<token-association/>
</arg-association>
</token-resolve>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="AssociatedObjectClass" scope="policy">
<arg-node-set>
<token-query>
<arg-dn>
<token-local-variable name="AssociatedObjectClass"/>
</arg-dn>
<arg-match-attr name="Object Class"/>
<arg-string>
<token-text xml:space="preserve">Object Class</token-text>
</arg-string>
</token-query>
</arg-node-set>
</do-set-local-variable>
<do-for-each>
<arg-node-set>
<token-local-variable name="AssociatedObjectClass"/>
</arg-node-set>
<arg-actions>
<do-if>
<arg-conditions>
<and>
<if-local-variable mode="nocase" name="current-value" op="equal">Group</if-local-variable>
</and>
</arg-conditions>
<arg-actions>
<do-break/>
</arg-actions>
<arg-actions>
<do-remove-association>
<arg-association>
<token-association/>
</arg-association>
</do-remove-association>
<do-veto/>
</arg-actions>
</do-if>
</arg-actions>
</do-for-each>
<do-remove-association>
<arg-association>
<token-association/>
</arg-association>
</do-remove-association>
<do-veto/>
</actions>
</rule>