Jaspersoft provides sample files for configuring JasperReports Server for external CAS authentication for both commercial and community editions; the precise files included in your deployment depend on your edition. CAS sample files are located in the <js‑install>/samples/externalAuth-sample-config directory of your JasperReports Server; the available files differ between community and commercial editions.
The sample files in your deployment that integrate Spring Security’s default CAS implementation with JasperReports Server may include the following:
| • | sample-applicationContext-externalAuth-CAS.xml: Sample file for integrating CAS with a JasperReports Server with a single organization, assigning the same roles to all users. |
| • | sample-applicationContext-externalAuth-CAS-staticRoles.xml: Sample file for integrating CAS with a JasperReports Server with a single organization, assigning additional roles to a list of administrative users. |
| • | sample-applicationContext-externalAuth-CAS-db-mt.xml: Sample file for integrating CAS with a JasperReports Server with multiple organizations, retrieving role and organization data from a JDBC database. |
| • | sample-applicationContext-externalAuth-CAS-LDAP-mt.xml: Sample file for integrating CAS with a JasperReports Server with multiple organizations, retrieving role and organization data from an LDAP server. |
To configure JasperReports Server to work with your implementation of CAS, select the sample configuration file you want, then modify and deploy it as follows:
| 1. | Make a copy of the CAS sample file you want and name it in the form applicationContext-<Name>.xml, for example, applicationContext-externalAuth-CAS.xml. |
| 2. | Edit the file you created and configure the beans correctly for your deployment, as described in the following sections. |
| 3. | Place the modified applicationContext-externalAuth-CAS.xml file in the <js-webapp>/WEB-INF directory. |
| <js-webapp> is the location of the JasperReports Server web application in your application server, or where you are modifying the configuration files, as explained in WEB-INF Directory Location. The rest of this chapter refers to file names alone. |
Recommended Comments
There are no comments to display.