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

    Join Date
    Jun 2004
    Posts
    1
    Rep Power
    0

    LDAP connection timeout setting


    Hi,

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

    Join Date
    Sep 2003
    Location
    Littleton, CO
    Posts
    72
    Rep Power
    11
    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