I'm running into this problem using JLDAP against an OpenLDAP server whenever the machine temporarily loses its network connectivity, or perhaps switches from one network to another.
After this happens, I am unable to connect to the OpenLDAP server using the LDAPConnection.connect() method on JLDAP. An LDAPException is thrown indicating a "Connect error".
The only way it seems to fix the issue is to bounce the OpenLDAP server. At
that point a connection can get re-established.
Jon Roberts www.mentata.com