I have a rather unique problem which I hope someone can help with.

Due to some data transformations between two eDir environments I'm
getting events like these:


Code:
--------------------
<modify class-name="User" dest-dn="ldap\users\s102ct5" dest-entry-id="33600" event-id="stmvm005dsdev1#20110906174423#1#1" from-merge="true" qualified-src-dn="dc=Users\CN=s102ct5" src-dn="\DSWEB-DEV\Users\s102ct5" src-entry-id="34553">
<association>{7004E1BD-9453-df01-80B5-005056B72273}</association>
<modify-attr attr-name="Group Membership">
<remove-all-values/>
<add-value>
<value timestamp="1312808445#1" type="dn">\ONLINEDS-DEV\ldap\users\bpmMenuName-USER</value>
<value timestamp="1312808446#1" type="dn">\ONLINEDS-DEV\ldap\users\iprocess\RMAGENT</value>
<value timestamp="1312808447#1" type="dn">\ONLINEDS-DEV\ldap\users\iprocess\RMTEAM1</value>
<value timestamp="1312808448#1" type="dn">\ONLINEDS-DEV\ldap\users\iprocess\RMWAIT</value>
<value timestamp="1312808450#1" type="dn">\ONLINEDS-DEV\ldap\users\staff-santam</value>
</add-value>
</modify-attr>
<modify-attr attr-name="Group Membership">
<remove-all-values/>
</modify-attr>
<modify-attr attr-name="Group Membership">
<remove-all-values/>
</modify-attr>
--------------------


The intention here is for the first modify-attr to be actioned and the
rest to be dumped (as they're overriding the first).

Is there a way to detect multiple 'remove-all-values' items, and dump
them all from the event except the one which has the 'add-value' with
it?


--
preycor
------------------------------------------------------------------------
preycor's Profile: http://forums.novell.com/member.php?userid=7822
View this thread: http://forums.novell.com/showthread.php?t=444275