You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Aaron Evans <aa...@yahoo.ca> on 2005/11/01 13:48:06 UTC
Re: [J2] LDAP Authentication Problems
Aaron Evans <aaronmevans <at> yahoo.ca> writes:
> Now, the spring framework error I get (well the root cause one anyway) is:
>
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'org.apache.jetspeed.security.spi.UserSecurityHandler' defined in
> ServletContext resource [/WEB-INF/assembly/security-spi-ldap-atn.xml]: 1
> constructor arguments specified but no matching constructor found in bean
> 'org.apache.jetspeed.security.spi.UserSecurityHandler' (hint: specify index
> arguments for simple parameters to avoid type ambiguities)
>
Ah, the problem is that in the security-spi-ldap-atn.xml file, the
org.apache.jetspeed.security.spi.UserSecurityHandler bean's constructor
was being passed a
org.apache.jetspeed.security.spi.impl.ldap.LdapUserCredentialDao
when it should be passed a
org.apache.jetspeed.security.spi.impl.ldap.LdapUserPrincipalDao.
The fix then is to setup a LdapUserPrincipalDao bean (using the
LdapUserPrincipalDaoImpl implementation) and pass it in for the constructor
arg. The constructor args for the LdapUserPrincipalDaoImpl are the same
as for the LdapUserCredentialDaoImpl.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org