cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to force a resync of a single object ?

UnboundID Matt_M
UnboundID
0 Kudos

Is there a way to force a resync of a single object ?

Question:

Is there a way to force a resync of a single object without doing every object matched by a sync class, and without creating a new sync pipe?

 

Answer:

To (re-)sync a specific set of entries, supply a source input file to the resync tool with the list of DNs you want Sync to evaluate. If Sync does not detect any differences, you can retry with ldap-diff tool using the sourceDNsFile parameter, then apply identified differences at the destination with ldapmodify.

resync usage:
--sourceInputFile {source-input-file}
Path to a file that contains a specific list of identifiers from the Sync Source that resync should consider. This can be used instead of the default bulk-search functionality. For
LDAP Sync Sources, this file should contain a list of DNs; for JDBC Sync Sources, the data may be in a user-defined format since it will be consumed by a JDBC Sync Source extension
-F, --failedDNsFile {failed-dn-file} [Default: resync-failed-DNs.log]

ldap-diff usage:
--sourceDNsFile {file-with-dns}
Build the list of source DNs to compare by reading DNs from this file instead of by doing a search from the source server. This can speed up the ldap-diff process in topologies where retrieving the list of DNs is expensive, such as a disk-bound environment. DNs should be listed in this file according to standard LDIF syntax.

1 REPLY
UnboundID KevinL
UnboundID
0 Kudos

Re: Is there a way to force a resync of a single object ?

In addition you can use the sourceSearchFilter option to resync that allows you to specify an LDAP search filter as the criteria for the source entries to include in the resync process.  Note that this option only works if the source system is an LDAP source. 

 

--sourceSearchFilter {source-ldap-filter}
Specify the LDAP filter for source entries to include in the resync operation. If this option is not specified then all entries from the source that match a Sync Class will be included in the resync operation