<div dir="auto"><div dir="auto">Hello!</div><div dir="auto"><br></div><div dir="auto">I am using the AdLdapConnector to connect to an Active Directory. I notice that after ~15 minutes the following exception is thrown in the logs:</div><div dir="auto"><br></div><div dir="auto">2024-09-24 19:29:01,419 [] [NioProcessor-7] WARN (org.apache.directory.ldap.client.api.LdapNetworkConnection): Connection reset</div><div dir="auto">java.net.SocketException: Connection reset</div><div dir="auto">        at java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketChannelImpl.java:394)</div><div dir="auto">        at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:426)</div><div dir="auto">        at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:378)</div><div dir="auto">        at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:47)</div><div dir="auto">        at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:519)</div><div dir="auto">        at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$1200(AbstractPollingIoProcessor.java:68)</div><div dir="auto">        at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.process(AbstractPollingIoProcessor.java:1224)</div><div dir="auto">        at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.process(AbstractPollingIoProcessor.java:1213)</div><div dir="auto">        at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:683)</div><div dir="auto">        at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)</div><div dir="auto">        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)</div><div dir="auto">        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)</div><div dir="auto">        at java.base/java.lang.Thread.run(Thread.java:840)</div><div dir="auto">2024-09-24 19:29:01,420 [] [NioProcessor-7] WARN (org.apache.directory.ldap.client.api.LdapNetworkConnection): null</div><div dir="auto">org.apache.mina.core.write.WriteToClosedSessionException: null</div><div dir="auto">        at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.clearWriteRequestQueue(AbstractPollingIoProcessor.java:1192)</div><div dir="auto">        at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.removeNow(AbstractPollingIoProcessor.java:1153)</div><div dir="auto">        at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.removeSessions(AbstractPollingIoProcessor.java:864)</div><div dir="auto">        at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:694)</div><div dir="auto">        at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)</div><div dir="auto">        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)</div><div dir="auto">        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)</div><div dir="auto">        at java.base/java.lang.Thread.run(Thread.java:840)</div><div dir="auto"><br></div><div dir="auto">I found an issue on Evolveum's OpenProject about this: <a href="https://support.evolveum.com/projects/midpoint/work_packages/3588">https://support.evolveum.com/projects/midpoint/work_packages/3588</a>.</div><div dir="auto"><br></div><div dir="auto">Is there any way to avoid these exceptions? A timeout that I can set in the connector configuration to resolve this?</div><div dir="auto"><br></div><div dir="auto">Thanks in advance!</div><div dir="auto"><br></div><div dir="auto">João Paulo Ribeiro.</div></div>