|
|
Ldap problems on Websphere
Hi,
We have an application where ldap authentication works without a problem on a Tomcat server. When we deploy this same application on Websphere we get the following error:
[Servlet Error]-[Filter [springSecurityFilterChain]: filter is unavailable.]: java.lang.ClassCastException: com/sun/jndi/ldap/LdapCtx incompatible with org//ldap/core/DirContextAdapter at org..security.ldap.SpringSecurityLd apTemplate$2.mapFromContext(SpringSecurityLdapTemp late.java:154)
This happens when the templates' searchForSingleAttributeValues method is called from our classes.
Any ideas?
We still didn't manage to solve this problem.
This is part of the LDAP configuration. Maybe it helps pointing out the problem?
lt;bean id=quot;ldapAuthProviderquot; class=quot;nl.chzorg.contract.jee.security.CHZorgGatew ayAuthenticationProviderquot;gt;
lt;property name=quot;ldapSearchquot;gt;
lt;bean class=quot;org..security.ldap.search.Fi lterBasedLdapUserSearchquot;gt;
lt;constructor-arg index=quot;0quot; value=quot;${ldap.usersearchbase}quot; /gt;
lt;constructor-arg index=quot;1quot; value=quot;${ldap.userfilter}quot; /gt;
lt;constructor-arg index=quot;2quot; ref=quot;ldapServerquot; /gt;
lt;property name=quot;searchSubtreequot; value=quot;truequot; /gt;
lt;/beangt;
lt;/propertygt;
lt;property name=quot;ldapAuthPopulatorquot;gt;
lt;bean class=quot;nl.chzorg.contract.jee.security.CHZorgLdapA uthoritiesPopulatorquot;gt;
lt;property name=quot;contextSourcequot; ref=quot;ldapServerquot; /gt;
lt;property name=quot;groupSearchBasequot; value=quot;${ldap.groupsearchbase}quot; /gt;
lt;property name=quot;groupSearchFilterquot; value=quot;${ldap.groupfilter}quot; /gt;
lt;/beangt;
lt;/propertygt;
lt;property name=quot;testingModusquot; value=quot;falsequot; /gt;
lt;property name=quot;userMapquot;gt;lt;mapgt;lt;/mapgt; lt;/propertygt; lt;/beangt;
lt;security:ldap-server id=quot;ldapServerquot; ucl=quot;${ldap.serverucl}quot; manager-dn=quot;${ldap.binduser}quot; manager-password=quot;${ldap.bindpass}quot; /gt;
lt;bean id=quot;roleVoterquot; class=quot;org..security.vote.RoleVoter quot; /gt;
lt;bean id=quot;accessDecisionManagerquot; class=quot;org..security.vote.Affirmati veBasedquot;gt;
lt;property name=quot;allowIfAllAbstainDecisionsquot; value=quot;falsequot; /gt;
lt;property name=quot;decisionVotersquot;gt;
lt;listgt;
lt;ref bean=quot;roleVoterquot; /gt;
lt;/listgt;
lt;/propertygt;
lt;/beangt;
The work around posted by anandlramadurg on showthread.php?p=246643 also solved this problem! |
|