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()*/);
LDAPConnection.setSocketFactory(sslSocketFactory);
}
this.masterConnection = new LDAPConnection();
try {
this.masterConnection.connect(host, port);
//**************** THIS LINE BELOW IS WHERE IT HANGS
******************
this.masterConnection.bind(LDAPConnection.LDAP_V3,
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.",
e);
}