THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Edit $CATALINA_HOME/webapps/cas/WEB-INF/deployerConfigContext.xml in your favorite XML editor.
- Find the SimpleTestUsernamePasswordAuthenticationHandler bean towards the bottom and comment it out. Replace it with the following:
Code Block <bean class="org.jasig.cas.adaptors.jdbc.SearchModeSearchDatabaseAuthenticationHandler"> <property name="tableUsers" value="rolleruser"/> <property name="fieldUser" value="username"/> <property name="fieldPassword" value="passphrase"/> <property name="dataSource" ref="dataSource"/> </bean>
- At the very end of the file (before the ending </beans> element), add a "dataSource" bean definition:
Code Block <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="com.mysql.jdbc.Driver"/> <property name="url" value="jdbc:mysql://localhost:3306/rollerdb"/> <property name="username" value="root"/> <property name="password" value=""/> <property name="maxActive" value="100"/> <property name="maxWait" value="1000"/> <property name="poolPreparedStatements" value="true"/> <property name="defaultAutoCommit" value="true"/> </bean>
- Download the following JARs and put them into $CATALINA_HOME/webapps/cas/WEB-INF/lib.
- Copy cas-server-support-jdbc-3.1.jar from $CAS_DOWNLOAD/modules to $CATALINA_HOME/webapps/cas/WEB-INF/lib.
- Modify the password in the "rollerdb" database so the "admin" user's password is in plain text.
- Start Tomcat. You should be able to login with the password you set in the previous step.
Integrate CAS with
...
Apache Directory Server
By default CAS ships with a SimpleTestUsernamePasswordAuthenticationHandler that has a hard-coded username and password. To change this to authenticate against your previously installed Apache Directory Server, complete the following steps:
...