I'm using the UnboundID LDAP SDK from a Java EE 6 app running in WLS 12.1.3.0.0 to interact with an LDAP server. Everything works with an open connection.
When trying to establish a secure LDAPConnection using a WLS SSLSocketFactory obtained from the WLS SSLContext, the LDAPConnection
times out with no further useful debugging information. The certificate on the LDAP server is issued by Verisign.
The error is:
LDAPException(resultCode=91 (connect error), errorMessage='An error occurred while attempting to connect to server XXXX:1636: java.io.IOException: Unable to establish a connection to server XXXX:1636 within the configured timeout of 60000 milliseconds.')
Am I correctly obtaining the SSLSocketFactory from WLS?
SSLContext sslContext = SSLContext.getInstance("https");
SSLSocketFactory sslFactory = sslContext.getSocketFactory();
ldapConn = new LDAPConnection(sslFactory,configBean.getLdapHost(),
configBean.getLdapPort(),configBean.getLdapBindDN(),
configBean.getLdapPassword());