Skip to main content
Hitachi Vantara Lumada and Pentaho Documentation

Switch to Central Authentication Service (CAS)

You can integrate Pentaho with Central Authentication Service (CAS). You must have a CAS server installed and running before you continue.

Perform the following steps to integrate Pentaho with CAS.

  1. Stop the Pentaho Server.
  2. Download the following files and copy them to the pentaho-server/tomcat/webapps/pentaho/WEB-INF/lib directory.
  3. Navigate to the pentaho-server/pentaho-solutions/system directory and open the pentaho-spring-beans.xml file with any text editor. 
    1. Add the import resource="applicationContext-spring-security-cas.xml"/> to the list of imports after all the other applicationContext*.xml files.
    2. Save and close the file.
  4. Navigate to the pentaho-server/pentaho-solutions/system directory and open the applicationContext-spring-security-cas.xml file with any text editor. Update the file using the following steps:

    You must use the publicly available IP address for all URLs in this file.

    1. If you are using Pentaho with SSL, then update the references for  https://localhost:8443/cas to your working CAS server URL. The CAS Server must use SSL. Contact your CAS Administrator if you need to add SSL security to your CAS instance.

    2. Locate the bean containing the ID for casAuthenticationProvider.

      <bean id="casAuthenticationProvider"
      <property name="userDetailsService">
       <ref bean="userDetailsService" />
    3. Change the bean ID based on your configuration to the applicable one as shown in the following example:

    4. Save and close the file.

  5. Navigate to the pentaho-server/tomcat/webapps/pentaho/WEB-INF directory and open the web.xml file.
    1. Add the following lines to the applicable sections in the file:  

    2. Save and close the file.

      The casFailed entries are CAS login flow dependent and must be defined and configured by the CAS Administrator on the CAS server. These entries cover cases such as what happens when the user enters the wrong password or similar authentication issues. The action taken depends on the CAS login flow definition.

  6. Start the Pentaho Server.

The Pentaho Server is now configured to authenticate users against your central authentication server.