Hi All,
 
I am trying to use the "SearchModeSearchDatabaseAuthenticationHandler" instead 
of the "SimpleTestUsernamePasswordAuthenticationHandler".
 
In the web.xml file of the folder 
C:\apache-tomcat-5.5.34\webapps\servlets-examples\WEB-INF, I added the filters 
as follows:
 
<filter>
<filter-name>CAS Filter</filter-name> 
<filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
<param-value>https://localhost:8443/cas-server-3.4.11/login</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
<param-value>https://localhost:8443/cas-server-3.4.11/proxyValidate</param-value>
</init-param>
<init-param><param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
<param-value>localhost:8443</param-value>
</init-param>
</filter> 
 
 
With the SimpleTestUsernamePasswordAuthenticationHandler, I get the CAS login 
screen  (https://localhost:8443/cas/login)  all right, but with the 
SearchModeSearchDatabaseAuthenticationHandler, I get an HTTP 404-- The 
requested resource () is not available.
 
Here is a part of my deployerConfigContex:
//------------------------
<bean 
class="org.jasig.cas.adaptors.jdbc.SearchModeSearchDatabaseAuthenticationHandler">
        <property name="tableUsers"><value>myusers</value></property>
        <property name="fieldUser"><value>uid</value></property>
        <property name="fieldPassword"><value>password</value></property>
        <property name="dataSource" ref="dataSource"/>
    </bean>
    <bean 
class="org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler">  
     <property name="dataSource" ref="dataSource" />  
     <property name="sql" value="select password from myusers where lower(uid) 
= lower(?)" />
    </bean>
 
//------------------------
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"> 
  <property name="driverClassName">  
   <value>com.mysql.jdbc.Driver</value> 
  </property> 
  <property name="url">  
   <value>jdbc:mysql://localhost:3306/spring</value> 
  </property> 
  <property name="username">  
   <value>root</value> 
  </property> 
  <property name="password">  
   <value>pass</value> 
  </property>
 </bean>
//---------------------------
 
Remarks:
My https server is ok, and so is the MySQL server.
 
Among other things, I don't know how to tell the CAS where to find the file 
that has the "com.mysql.jdbc.Driver". 
 
Also, how is https://localhost:8443/cas/login is mapped? I don't see and /login 
folder under my /webapp/cas folder.
 
Any help would make my weekend better :)
 
Thanks for taking time to read.
 
Cheers.
 
-- 
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

Reply via email to