Connection to Ldap Server Not Closed
Hello, I am running ldap and samba using lsc to sync from ldap to samba (one way). Running an asynchronous task leads to a high number of ldap connections. This causes a critical delay of the ldap answer.
System: Ubuntu 16.04 Java: openjdk 8 Start command: /usr/bin/lsc -a all -f /etc/lsc Message: ERROR - There is no future associated with operation message ID 225, perhaps the operation would have been completed
Config Files (.txt not added on original files): lsc.xml.txt shadowExpire.js.txt
The number of running threads of lsc increases over time and therefore the number of ldap connections (after 10 min: ~60 connections and ~100 Threads). Is there any mistake in the configuration file? Is this a known issue?
Thank you, Felix
It seems indeed a bug. Can you try to run LSC with -t1, to have only one thread?
And I note your are using asynchronous mode with a simple ldapSourceService, which will query the LDAP source service every five minutes with a filter on modifyTimeStamp (see https://lsc-project.org/documentation/latest/configuration/service/sourceldap). It is maybe safer to run this with synchronous mode.
Thank you for your answer. The synchronous mode works well! The behavior does not change using -t1. Best, Felix