与CAS合并Pentaho BA 7社区版

最近我正在努力将Pentaho BA(BI服务器)7 CE与Cas服务器集成。 我跟进Pentaho官方文档。 https://help.pentaho.com/Documentation/5.1/0P0/150/010/060/000但不幸的是它不起作用!! 实际上,在文档中找到第5节很难。 我必须在我的配置中设置casAuthenticationProvider.MemoryUserDetailsS​​ervice ? 而我从引擎中获得的是错误,表示无法找到CasAuthenticationProvider类。 我添加了所有必要的JAR。 错误是:

Cannot find class for publish type: INTERFACES specified on publish of bean id: casAuthenticationProvider 

我找到了一个线索,但我仍然无法使其发挥作用。

你应该下载一个3.0.x版本的spring-securiry-cas-client,而不是2.0.5作为pentaho文档中的指南。

我正在使用3.0.8版进行测试。

开始似乎没有错误,但当我尝试登录pentaho时,不要重定向到CAS,我收到此错误:

 16-Jan-2017 15:09:46.558 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [pentaho] created a ThreadLocal with key of type [java.lang.InheritableThreadLocal] (value [java.lang.InheritableThreadLocal@218e39af]) and a value of type [org.springframework.security.core.context.SecurityContextImpl] (value [org.springframework.security.core.context.SecurityContextImpl@2b468485: Authentication: org.springframework.security.authentication.UsernamePasswordAuthenticationToken@2b468485: Principal: b653234b-34f4-4bff-ba21-01c1b884241f; Credentials: [PROTECTED]; Authenticated: false; Details: null; Not granted any authorities]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 

注意已添加:

我终于使用了这个说明:

  1. 使用: http : //repo1.maven.org/maven2/org/springframework/security/spring-security-cas-client/3.0.8.RELEASE/spring-security-cas-client-3.0.8.RELEASE.jar

  2. 进入文件pentaho-spring-beans.xml注释出行:


因为pentaho 7.0默认使用长耳兔。

  1. 我不做Pentaho文档的第5和第8项。

现在应用程序重定向到CAS,但现在我对证书有一些问题,但这与这个问题的问题完全不同。 我正在解决我的问题,将CAS证书导入应用程序信任库。

最后注意:我解决了我的证书问题,现在我有Pentaho 7 CE和CAS。