In a previous Cool Solutions article ( I strongly recommended that when using a Veto command to scope events, you need to limit it to the class of the object you are watching for.

Of course, there are always exceptions, and here is one that came to mind soon after.

Imagine an Identity Vault linked to Active Directory. When a delete in AD occurs, you probably do not want to always delete the user in the IDV, but maybe you want to disable them in the IDV just in case.

The rule below seems to make sense for handling this problem:

  <description>Convert Deletes in AD to remove association in
  <comment xml:space="preserve">Delete in AD means remove
association in IDV and disable the user in IDV.</comment>
      <if-class-name mode="nocase"
      <if-operation op="equal">delete</if-operation>
    <do-add-dest-attr-value direct="true" name="Login Disabled">
      <arg-value type="string">
    <do-remove-association direct="true">

Basically, this rule checks if it is a User, and then if it is a Delete event. So I would probably put it in the Publisher Event Transform rule. And I would expect it to just work. But then, do it, and the User gets deleted in the IDV, gosh-darn it!


As usual in cases like this, we head off to our handy Dstrace. Man, where would we be without Dstrace?

Looking at the event that gets generated on an AD delete we see this:

<nds dtdversion="2.2">
<product version=" ">DirXML</product>
  <contact>Novell, Inc.</contact>
  <delete event-id="ADLink##112e8db8074##0" src-dn="CN=AAA

So we see an event that is a Delete. Good so far, but when we watch the trace processing the rule, we will see that the condition “if object class is User” will not be true.

This makes sense; if you look at the document you get from the AD driver, it is not talking about a user. Deleted users get moved to a hidden container off the root of the domain, called Deleted Objects.

So the fix is pretty easy: remove the test for User class, and the deletes will be caught. You should consider how you want to handle Group or other object class deletes, since a Disable login will not make much sense against a group or OU in the IDV.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Leave a Reply

No Comments
By: geoffc
Jun 13, 2007
4:39 am