THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Install Tomcat 6 and create a CATALINA_HOME environment variable that points to the installation location.
- Create a roller-custom.properties file and put it in your server's classpath ($CATALINA_HOME/lib for Tomcat 6).
Code Block installation.type=auto database.configurationType=jdbc database.jdbc.driverClass=com.mysql.jdbc.Driver database.jdbc.connectionURL=jdbc:mysql://localhost:3306/rollerdb?createDatabaseIfNotExist=true database.jdbc.username=root database.jdbc.password= mail.configurationType=properties mail.hostName=localhost
- Download the following JARs and copy them to apache-roller-4.0/webapps/roller/WEB-INF/lib:
- MySQL JDBC Driver
- JavaMail: activation.jar and mail.jar
- Copy apache-roller-4.0/webapps/roller to $CATALINA_HOME/webapps/roller and start Tomcat.
- Go to http://localhost:8080/roller
and complete the steps to add a new user and create a blog. When creating a new user, use admin for the username and admin for the password.
- Test that Roller works by creating a blog entry using the web interface, or using a client like MarsEdit (Moveable Type, RPC URL: http://localhost:8080/roller/roller-services/xmlrpc
, Blog ID: admin).
...
- Install CAS by copying its modules/cas.war to $CATALINA_HOME/webapps.
- Navigate to http://localhost:8080/cas
and login with admin/admin.
- Configure Roller to talk to CAS by making the following modifications to security.xml:
- In the filterChainProxy bean definition, replace "authenticationProcessingFilter,rememberMeProcessingFilter" with "casProcessingFilter".
- In the authenticationManager bean, comment out the "ldapAuthProvider" and add <ref local="casAuthenticationProvider"/>.
- Change the exceptionTranslationFilter to use "casProcessingFilterEntryPoint" for its "authenticationEntryPoint".
- Look for the "CAS" beans near the bottom of the file) and uncomment the bean definitions to enable CAS integration.
- Copy casclient.jar from the cas-client-java-2.1.1/dist directory to $CATALINA_HOME/webapps/roller/WEB-INF/lib.
- Modify $CATALINA_HOME/conf/server.xml to enable https support. Below is an example.
Code Block <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="/Users/mraible/.keystore" keystorePass="changeit" truststoreFile="/System/Library/Frameworks/JavaVM.framework/Home/lib/security/cacerts"/>
- Use the CAS SSL Guide to generate, export and import a certificate.
- At this point, you should be able to start Tomcat and login to your blog. The login page should be from CAS rather than Roller and admin/admin should log you in successfully.
...