[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Using "keytool" to create security certificates for OpenLDAP

Safdar Kureishy wrote:
This seems to happen intermittently
for different calls to bind() - it then hangs. Is this a known problem
with JLDAP and SSL?

Not that I know of, have observed, or see in ITS. You don't say what the certain number is, but the theoretical limit should be very high depending on the system resources. I'd crank up your OpenLDAP logs and see what's happening in detail. I recommend posting all the relevant log output in your message if you want assistance.

Jon Roberts

On Mon, 28 Mar 2005 13:15:47 -0800, Safdar Kureishy
<safdar.kureishy@gmail.com> wrote:
I'm running into another problem though -- it seems I cannot perform
more than a couple of bind operations against OpenLDAP. After a
certain number of calls to bind(), the thread gets stuck waiting on
some condition, and I have no clue what that condition is. Have you
had this problem? Is there a max number of connections that one can
have active against OpenLDAP server?

This is the code where it hangs:
       if (this.useSSL) {
           LDAPSocketFactory sslSocketFactory = new
LDAPJSSESecureSocketFactory(/*new OpenLDAPSSLSocketFactory()*/);
       this.masterConnection = new LDAPConnection();

       try {
           this.masterConnection.connect(host, port);

           //**************** THIS LINE BELOW IS WHERE IT HANGS
this.loginDN, passwd);

       } catch (LDAPException e) {
           throw new InitializationException("could not initialize a
connection to the ldap server. If you have a firewall enabled, please
make sure to enable passthrough for the openldap server port. Also
make sure that your credentials are correct.",