ServiceUnavailableException Reported When Connecting to LDAP Using SSL
Symptoms
When trying to connect to an LDAP Server using SSL, the following error is reported in the log file:
[console.action.directory.UpdateConnectorConfiguration] example.com:636; socket closed; nested exception is javax.naming.ServiceUnavailableException: example.com:636; socket closed
org.springframework.ldap.ServiceUnavailableException: example.com:636; socket closed; nested exception is javax.naming.ServiceUnavailableException: example.com:636; socket closed
at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:210)
at org.springframework.ldap.core.support.AbstractContextSource.createContext(AbstractContextSource.java:266)
at org.springframework.ldap.core.support.AbstractContextSource.getContext(AbstractContextSource.java:106)
at org.springframework.ldap.core.support.AbstractContextSource.getReadOnlyContext(AbstractContextSource.java:125)
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:287)
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:237)
Cause
When using SSL to connect to LDAP, Crowd 2.0.0 and newer versions require the connector URL to use ldaps:// instead of only ldap://.
Resolution
- In the connector URL field, ensure that the URL string starts with ldaps://
Last modified on Feb 26, 2016
Powered by Confluence and Scroll Viewport.