Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I access the changes in a scripted connector in update mode without doing the change

24 views
Skip to first unread message

Franzw

unread,
Dec 2, 2009, 2:36:58 AM12/2/09
to
I need to compare 2 ldap server entries i.e the same DN. Normally,
this is easy using an ldap iterator and subsequently using a second
ldap update connector. This will although update the second ldap
server.

I want to be able to "catch" the changes WITHOUT doing any change -
and just to make it more usable in my application I want to do this in
the iterator connector using a scripted connector. This will basically
make an ldapdiff iterator....

I can do this compare scripted by iterating over all attributes - but
I believe a better approach is to use the builtin comparison methods
of the "compute changes"...

Regards
Franz Wolfhagen

Eddie Hartman

unread,
Dec 3, 2009, 6:04:47 AM12/3/09
to
I have made a script for this, Franz, which provides
a JSON object that computes delta using the same
setup as the Delta Engine:
http://www.tdi-users.org/twiki/bin/view/Integrator/DeltaEngineScript

In lieu of using this as-is, if you open the script up
then you will see that there is this line of script (although
variables have been shortened to get it all on one
line):

deltaE = com.ibm.di.entry.DeltaEntry.getDeltaEntry(oldE, newE);

This call returns a delta entry with operation codes all the
way down to the Attribute value level. Hope this helps :)

-Eddie

0 new messages