IBM Support

LDAPSYNC Crontask fails with connection closed error

Technical Blog Post


Abstract

LDAPSYNC fails with connection closed

Body

Problem:

In LDAPSYNC, if a large chunk of data takes a long time to process, and the processing time exceeds the Microsoft Active Directory Server’s idle connection timeout setting (MaxConnIdleTime), it can cause the Active Directory to close the connection, which leads to synchronization failure.

Symptoms:

LDAPSYNC Cron Task fails with errors like these:

BMXAA6752E - Group synchronization could not be performed because of error connection closed. The error count was 148. See the associated message. Correct the problem and try to synchronize again.
     javax.naming.CommunicationException: connection closed [Root exception is java.io.IOException: connection closed]

BMXAA6752E - Group synchronization could not be performed because of error Connection reset. The error count was 170. See the associated message. Correct the problem and try to synchronize again.
     javax.naming.CommunicationException: Connection reset [Root exception is java.net.SocketException: Connection reset]
     javax.naming.CommunicationException: abcde.xyz.com:328 [Root exception is java.net.ConnectException: Connection refused: connect]

Solution:

Increase the value of MaxConnIdleTime on the Active Directory server so that it is larger than the processing time of the largest chunk of data.

Note:

MaxConnIdleTime is the maximum time in seconds that the client can be idle before the LDAP server closes the connection. If a connection is idle for more than this time, the LDAP server returns an LDAP disconnect notification. The default value of MaxConnIdleTime is 900 seconds.

ref: View and set LDAP policy in Active Directory by using Ntdsutil.exe

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

UID

ibm11133025