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
-
[CWD-2414] ClassCastException with Sun/Spring LDAP classes in a plugin
Workflow | Original: Simplified Crowd Development Workflow v2 - restricted [ 1509959 ] | New: JAC Bug Workflow v3 [ 3364865 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Link | New: This issue is related to JRACLOUD-25757 [ JRACLOUD-25757 ] |
Workflow | Original: Simplified Crowd Development Workflow v2 [ 1392585 ] | New: Simplified Crowd Development Workflow v2 - restricted [ 1509959 ] |
Workflow | Original: Crowd Development Workflow v2 [ 288197 ] | New: Simplified Crowd Development Workflow v2 [ 1392585 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Technical Review [ 10028 ] | New: Resolved [ 5 ] |
Worklog Id | Original: 100008 [ 100008 ] | |
Remaining Estimate | Original: 12h [ 43200 ] | New: 5h [ 18000 ] |
Time Spent | New: 7h [ 25200 ] |
Status | Original: In Progress [ 3 ] | New: Technical Review [ 10028 ] |
Crowd now sets the context ClassLoader so JNDI can load Spring's DefaultDirObjectFactory.