1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Rep Power

    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!!
  2. #2
  3. Chris Larivee
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Littleton, CO
    Rep Power
    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 ...

IMN logo majestic logo threadwatch logo seochat tools logo