June 11th, 2004, 02:07 PM
LDAP connection timeout setting
I have created an ldap client. However, I have encountered an issue where the connections hangs at unspecified times. If I do a netstat on the port of the ldaplserver, the connections seem to be still established. Thus, these connections seem to be ghost connections.
Can someone shed some light as to
1. why this occurs
2. what I could to do resolve this issue.
the LDAP JNDI (sun) API does not really provide a timeout setting to disconnect the connections. It does provide the following:
com.sun.jndi.ldap.connect.timeout, but I do not think this is the correct timeout property that I am looking for.
Thanks in advance for your help!!
June 28th, 2004, 10:23 PM
Your LDAP administrator(s) should be setting a timeout value on their servers. Failing to set this parameter at the server level could lead to service attacks or unplanned interruptions. You could and should push back on them to set a timeout setting. However if you are failing to connect on the client side and experiencing hanging during connection attempts I think you should be using the com.sun.jndi.ldap.connect.timeout ...
good luck ...