A Forum reader recently asked:
"My goal is to create a User in eDirectory based on a specific ADS (W2K3) GroupMembership. The problem: the ADS is Member "Attribute" in ADS is just a Query, not an Attribute. Therefore, if a User becomes Member of a Group, there is no REAL Attribute at the User Side which changes, therefore NO event happens at the UserSide. The Only visible Event is the one at the GroupSide.
It would be nice if the User were deleted from eDirectory. I don't mind if this is done through the similar EDIR Group, as we could handle this event from the eDir side. The GroupMembership is removed at eDir side as well, so this should not be a problem to handle at this stage - remove the User from eDirectory, not just its membership."
And here's the response from Father Ramon ...
Starting with a generic IDM 3.5 install of AD driver:
1. Add Group Membership to the filter for User.
<filter-attr attr-name="Group Membership" merge-authority="app"
publisher="sync" publisher-optimize-modify="true" subscriber="ignore"/>
2. Add this at the beginning of the InputTransform:
<description>Trigger Reevaluation of SyncGroup members when membership
<if-class-name mode="nocase" op="equal">group</if-class-name>
<if-op-attr name="member" op="changing"/>
<do-add-dest-attr-value class-name="user" name="memberOf">
<do-set-xml-attr expression="../modify[last()]" name="src-dn">
3. Add this to the beginning of the Matching Policy on the Publisher Channel:
<description>veto users that are not members of the sync
<if-class-name mode="nocase" op="equal">User</if-class-name>
<if-attr mode="dest-dn" name="Group Membership"
4. Add this to the beginning of the Command Transform on the Publisher Channel
<description>Delete Users who are being removed from
The controlling Group in AD is CN=SyncGroup,CN=Users,DC=my,DC=org and is associated and synchronized with People\SyncGroup in eDirectory. Policies will have to be edited to include the actual DN's of the groups in your systems.
If at all possible, enable the new "DirSync Incremental Values" option available in the latest patch of AD driver. This allows the member attribute to report the actual change instead of remove-all-values and add all remaining values. You can find this patch at:
Without this, every time someone is added or removed from the group, every single user that remains in the group will be re-evaluted.