AnsweredAssumed Answered

Pentaho 7 Login Error using LDAP/JDBC Hybrid configuration

Question asked by Jamal Goulla on Jan 30, 2018
Latest reply on May 28, 2018 by B241N7QV

I've followed Pentaho 7 (EE) documentation on how to set LDAP/JDBC hybrid configuration: created the tables and filled them with the appropriate values then updated the configuration files as instructed.

When trying to login to the PUC the following error is thrown:

java.util.concurrent.ExecutionException: javax.jcr.LoginException:
LoginModule could not perform authentication:Target of Bean was never
resolved
:
org
.springframework.security.core.userdetails.UserDetailsService

My security.properties includes

provider=ldap
role
.provider=jdbc

I set the providerName in pentahoObjects.spring.xml to jdbc

<pen:bean id="activeUserRoleListService"class="org.pentaho.platform.api.engine.IUserRoleListService">
<pen:attributes>
<pen:attr key="providerName" value="jdbc"/>
</pen:attributes>
</pen:bean>

applicationContext-spring-security-jdbc.properties is properly configured

I set jdbcRoleMap in applicationContext-pentaho-security-jdbc.xml to my jdbc admin group

And repalced: org.springframework.security.ldap.populator.DefaultLdapAuthoritiesPopulatorwith:

<bean id="populator"class="org.springframework.security.ldap.authentication.UserDetailsServiceLdapAuthoritiesPopulator">
<constructor-arg ref="jdbcUserDetailsService"/>
</bean>

Outcomes