Ldap Sync V 2.2.0 Hangs when using ssl

Document ID : KB000125146
Last Modified Date : 25/01/2019
Show Technical Document Details
Issue:
We are suing Ldap-Sync V 2.2.0. 
When we try to use the Ldap-synch with SSL the Sync hangs: 

Output with --log trace while running 
"Reference Handler" #2 daemon prio=10 os_prio=0 tid=0x00007f1ff4101800 nid=0x61bf in Object.wait() [0x00007f1ff8305000] 
java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00000000c2ea9c28> (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:502) 
at java.lang.ref.Reference.tryHandlePending(Reference.java:191) - locked <0x00000000c2ea9c28> (a java.lang.ref.Reference$Lock) 
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153) "main" #1 prio=5 os_prio=0 tid=0x00007f1ff4009000 nid=0x61bb waiting on condition [0x00007f1ffcb69000] 
java.lang.Thread.State: TIMED_WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x00000000c3124678> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) 
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) 
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) 
at java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467) 
at org.apache.directory.ldap.client.api.future.ResponseFuture.get(ResponseFuture.java:130) 
at org.apache.directory.ldap.client.api.future.SearchFuture.get(SearchFuture.java:69) 
at org.apache.directory.ldap.client.api.SearchCursorImpl.next(SearchCursorImpl.java:119) 
at com.automic.sara.ldapsync.ldap.LDAPService$3.read(LDAPService.java:306) 
at com.automic.sara.ldapsync.ldap.LDAPService$3.read(LDAPService.java:301) 
at com.automic.sara.ldapsync.ldap.LDAPService$SearchFunction.search(LDAPService.java:58) 
at com.automic.sara.ldapsync.ldap.LDAPService$SearchFunction.apply(LDAPService.java:51) 
at com.automic.sara.ldapsync.ldap.LDAPService.search(LDAPService.java:163) 
at com.automic.sara.ldapsync.ldap.LDAPService.getGroupMembers(LDAPService.java:301) 
at com.automic.sara.ldapsync.ldap.LDAPService.getGroupMembers(LDAPService.java:356) 
at com.automic.sara.ldapsync.ldap.LDAPService.fetchLDAPUsers(LDAPService.java:256) 
at com.automic.sara.ldapsync.ldap.LDAPService.loadLDAPUsers(LDAPService.java:214) 
at com.automic.sara.ldapsync.steps.AESynchronizationStep.findChange(AESynchronizationStep.java:121) 
at com.automic.sara.ldapsync.steps.AESynchronizationStep.sync(AESynchronizationStep.java:96) 
at com.automic.sara.ldapsync.steps.BaseSynchronizationStep.execute(BaseSynchronizationStep.java:100) 
at com.automic.sara.ldapsync.SynchronizationStepChain.execute(SynchronizationStepChain.java:33) 
at com.automic.sara.ldapsync.LDAPSynchronizer.run(LDAPSynchronizer.java:59) 
at com.automic.sara.ldapsync.LDAPSynchronizer.main(LDAPSynchronizer.java:28) 
"VM Thread" os_prio=0 tid=0x00007f1ff40fa000 nid=0x61be runnable 
"GC task thread#0 (ParallelGC)" os_prio=0 tid=0x00007f1ff401e000 nid=0x61bc runnable 
"GC task thread#1 (ParallelGC)" os_prio=0 tid=0x00007f1ff4020000 nid=0x61bd runnable 
"VM Periodic Task Thread" os_prio=0 tid=0x00007f1ff415a800 nid=0x61c5 waiting on condition 
JNI global references: 307




 
Cause:
It was caused by  a bug in an old Version of Apache Mina Project
Resolution:
The issue was found and fixed with  LDAPSync 2.0.5LDAPSync 2.1.2,LDAPSync 2.2.1LDAPSync 2.3.0 
The Package is available for download at the Automic-Support-Zone (https://support.automic.com).
Hotfix-Description: LDAPSync hangs when using Security LDAP connection.
A problem has been fixed where LDAPSync hanged when connecting to the LDAP server via SSL.
Additional Information:
https://alm.automic.com/jira/browse/LDAPSYNC-119?jql=id%3D301703