Sun and Spring LDAP classes are exported inconsistently to plugins, causing:
java.lang.ClassCastException: com.sun.jndi.ldap.LdapCtx cannot be cast to org.springframework.ldap.core.DirContextAdapter.
on a call to findUserWithAttributesByName. This can be worked around by passing:
-Datlassian.org.osgi.framework.bootdelegation=sun.*, com.sun.*, org.springframework.ldap.core.*
A more stable fix would probably be to tweak the exported inclusions/exclusions in components/crowd-server/src/main/resources/applicationContext-CrowdPlugins.xml.
- causes
-
CWD-2244 ClassCastException when performing REST authentication against LDAP
-
- Closed
-
- is related to
-
JRASERVER-25757 SOAP "login" does fail, if the user account is stored in LDAP Directory
-
- Closed
-