Hi Andy, It feels strange that I am answering questions, as just last week, I was the one searching for answers. I still am, but things are improving.
Anyway, I recently enabled querying a MySql DB using CAS 4.0.0. I used the out of the box .war file from Github. I then modified the deployerConfigContext.xml file ( /usr/local/apache-tomcat-8.0.15/webapps/cas/WEB-INF) . I used this resource: https://wiki.jasig.org/display/CASUM/Using+JDBC+for+Authentication For the part where you are told to replace the bean tag with one of the two ways to authenticate (Search vs Query), I chose the Search method. I also commented out the PrimaryAuthentictionHandler and when I added the new section, it looked like this: <bean id="primaryAuthenticationHandler" class="org.jasig.cas.adaptors.jdbc.SearchModeSearchDatabaseAuthenticationHandler" abstract="false" lazy-init="default" autowire="default" > ….. ….. …. Then, you also have to add the bean tag that includes your local database credential information. I hope that helps. I have so much more to do to get this to where I want it, but at least the basic MySQL db authentication is happening. Regards, Christopher Adams From: Andy Turner [mailto:[email protected]] Sent: Tuesday, December 23, 2014 12:15 PM To: [email protected] Subject: [cas-user] cas 4 and mysql? After reading the documentation with cas 4, the github cas-server-webapp is working prior to any changes, but i cannot get it to work with mysql for basic user authentication. After 3 days, i am about to give up, i simply cannot figure out how to satisfy the requirements of the Database-Authentication.md file. Anyone have this working? All of the old documentation from the jasig wiki doesn't work due to spring security 3.1 not respecting the old 2.0 schema of pom.xml, deployerConfigContext.xml, etc, and the inter-dependency-hell of complete un-compatibility between hibernate, jpa, maven, spring, etc seems too much to bear. I would be grateful for a step in the right direction. Everything works with 4.0 until i try to persist tickets to the mysql database, then it all goes haywire. (404) -- Respectfully, Andy Turner '05 Education Technologist 312-772-6856 cell 217-245-3393 desk calendar: http://www.google.com/calendar/embed?src=andy.turner%40mail.ic.edu&ctz=America/Chicago Illinois College Crispin Hall 302 1101 W. College Ave. Jacksonville, IL 62650 Please email [email protected]<mailto:[email protected]> to generate a work order. We are happy to help! "An ocean refuses no river."- Sheila Chandra -- You are currently subscribed to [email protected]<mailto:[email protected]> as: [email protected]<mailto:[email protected]> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
