Quantcast
Channel: Pentaho Community Forums - BI Platform
Viewing all articles
Browse latest Browse all 2893

Trying to use custom authentication Manager

$
0
0
I have Pentaho 5.4 and I am trying to use my own custom Authentication Manager. I have replaced authentication manager in the applicationContext-spring-security.xml with my own like this:

Code:

  <!-- ======================== AUTHENTICATION ======================= -->
 
  <jee:jndi-lookup id="oracleDS" jndi-name="jdbc/Sso" resource-ref="true" />
 
  <bean id="myAuthenticator" class="com.my.pentaho.Authentication.MyAuthenticator">
    <property name="dataSource">
      <ref local="oracleDS" />
    </property>
  </bean>

 
  <bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager">
    <property name="providers">
      <list>
        <pen:bean class="org.springframework.security.providers.AuthenticationProvider"/>
        <ref local="myAuthenticator" />
      </list>
    </property>
  </bean>

And I can log in fine, however, the main screen in not showing up, and I am getting this error in the log:

Code:

ERROR [BackingRepositoryLifecycleManagerAuthenticationSuccessListener] Repository access exception; nested exception is javax.jcr.security.AccessControlException: Principal Michael-/pentaho/tenant0 does not exist.
org.springframework.extensions.jcr.JcrSystemException: Repository access exception; nested exception is javax.jcr.security.AccessControlException: Principal Michael-/pentaho/tenant0 does not exist.

There also seems to be some Jackrabbit errors as well, which I don't understand as I am not using Jackrabbit, JDBC, or LDAP, but my own.

Any ideas? I also can't seem to find a tutorial (newer one 5+) on how to use a custom login. Not a custom JDBC, or custom LDAP, but just my own. I am well versed in Spring Security, but it seems Pentaho is doing something else.

Viewing all articles
Browse latest Browse all 2893

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>