Hi everyone, I try use POSTGRESQL for CAS but when I config follow guide in this link https://wiki.jasig.org/display/CASUM/Using+JDBC+for+Authentication and I restart Apache tomcat and access https://localhost:8443/cas/login but I received error message "Etat HTTP 404 - /cas/login". Below, I provide all step I follow. Can you help me check what wrong?
Step 1: Replace > <bean class= > "org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler" > /> by <bean id="SearchModeSearchDatabaseAuthenticationHandler" > > class="org.jasig.cas.adaptors.jdbc.SearchModeSearchDatabaseAuthenticationHandler" > abstract="false" singleton="true" lazy-init="default" autowire="default" > dependency-check="default"> > <property name="tableUsers"> > <value>users</value> > </property> > <property name="fieldUser"> > <value>user_id</value> > </property> > <property name="fieldPassword"> > <value>password</value> > </property> > <property name="dataSource" ref="dataSource" /> > </bean> In deployerConfigContext.xml Step 2: Add > <!-- PostgreSQL connector --> > <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"> > <property name="driverClassName"> > <value>org.postgresql.Driver</value> > </property> > <property name="url"> > <value>jdbc:postgresql://database-server-name:5432/db-name</value> > </property> > <property name="username"> > <value>admusr</value> > </property> > <property name="password"> > <value>admpwd</value> > </property> > </bean> below > </list> > </property> > </bean> Save deployerConfigContext.xml and restart apache. Thank so much. -- *ĐÀO VĂN PHONG* *Hai Phong Private University* -- 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
