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

CAS authentication BIServer CE 5.2 With LDAP

$
0
0
Hi, last days i have facing so many troubles trying to integrate CAS Authentication with BIServer CE 5.2, and switching from Pentaho default security to LDAP security

My LDAP Security configuration works fine, I've edited those files

- biserver-ce/pentaho-solutions/system/applicationContext-security-ldap.properties
- biserver-ce/pentaho-solutions/system/security.properties
- biserver-ce/pentaho-solutions/system/repository.spring.properties

After that I'm able to authenticate using my LDAP users and roles
Also I want to be able to authenticate using my CAS server, in order to do that I've follow those steps

- Configured the file biserver-ce/pentaho-solutions/system/applicationContext-spring-security-cas.xml
in order to use ldap for user details i changed this property
<property name="userDetailsService">
<ref bean="ldapUserDetailsService"/>
</property>

- Import applicationContext-spring-security-cas.xml file in pentaho-spring-beans.xml adding this line <import resource="applicationContext-spring-security-cas.xml"/> after all "applicationContext*" imports
- added those files cas-client-core-3.1.5.jar and spring-security-cas-client-2.0.5.RELEASE.jar in biserver-ce/tomcat/webapps/pentaho/WEB-INF/lib
Files for CAS Configuration: applicationContext-spring-security-cas.xmlpentaho-spring-beans.xml

Once i have my configuration ready, I try to access to pentaho accessing to this URL http://localhost:8080/pentaho, automatically pentaho redirects me to my CAS server login page, I enter my credentials.. then I'm redirected to pentaho's home page http://localhost:8080/pentaho/Home, there is no cas-failed page since my credentials submitted to CAS are right and both: Pentaho and CAS Server, are pointing to the same LDAP server (Same Users), however pentaho's home page keeps loading with a white page, just the loading message that disappears and the only thing that shows is the menubar, in the logs I'm getting the next exception:

SEVERE: Servlet.service() para servlet jaxrsEndpoint-spring lanzó excepción
org.springframework.transaction.CannotCreateTransactionException: Could not open JCR session for transaction; nested exception is java.lang.IllegalStateException: this method cannot be called with a null IPentahoSession
at org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager.doBegin(LocalTransactionManager.java:160)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:374)
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:263)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:101)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy30.getBoundLogicalRoleNames(Unknown Source)
at org.pentaho.platform.security.policy.rolebased.RoleAuthorizationPolicy.isAllowed(RoleAuthorizationPolicy.java:84)
at org.pentaho.platform.web.http.api.resources.services.FileService.doGetCanCreate(FileService.java:802)
at org.pentaho.platform.web.http.api.resources.FileResource.doGetCanCreate(FileResource.java:1140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
at org.pentaho.platform.web.servlet.JAXRSServlet.service(JAXRSServlet.java:108)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)

Those are the log files:
localhost.2014-11-14.log

I'm new in pentaho and I get stuck at this point, somebody who has already done this setup before? or someone who can give any suggestions? any help will be very appreciated... sorry my bad english :cool:

Viewing all articles
Browse latest Browse all 2893

Trending Articles



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