Hi,
 
Thank you for your quick answer. I want to ask a bit more about this. I want to 
know which CAS architecture ( CAS1 or CAS2) I am using in my setting.
 
For "Hello World" application, the setting is exactly like the demo, and the 
web.xml is like below, the same as demo
 
.....

<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://compA:8443/cas/login</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
<param-value>https://compA:8443/cas/serviceValidate</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
<param-value>compA:8080</param-value>
</init-param>
</filter>

<filter-mapping>
<filter-name>CAS Filter</filter-name>
<url-pattern>/servlet/HelloWorldExample</url-pattern>
</filter-mapping>.....
For the application B, in web.xml, it's like below
 
.....
  <filter>     <filter-name>CAS Authentication Filter</filter-name>     
<filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
         <init-param>           <param-name>casServerLoginUrl</param-name>    
<param-value>https://compA:8443/cas/login</param-value>         </init-param>   
      <init-param>         <param-name>service</param-name>         
<param-value>http://compA:8080/testme/test.jsp</param-value>         
</init-param>         <init-param>           
<param-name>serverName</param-name>    <param-value>compA:8080</param-value>    
     </init-param>
       </filter>
       <filter>         <filter-name>CAS Validation Filter</filter-name>        
 
<filter-class>org.jasig.cas.client.validation.Cas10TicketValidationFilter</filter-class>
         <init-param>           <param-name>casUrlServerPrefix</param-name>    
<param-value>https://compA:8443/cas</param-value>         </init-param>         
<init-param>           <param-name>serverName</param-name>    
<param-value>compA:8080</param-value>         </init-param>       </filter>
 <filter>    <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>   
 
<filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
 </filter>
 
   <filter-mapping>       <filter-name>CAS Authentication Filter</filter-name>  
     <url-pattern>/*</url-pattern>   </filter-mapping>
   <filter-mapping>       <filter-name>CAS Validation Filter</filter-name>      
 <url-pattern>/*</url-pattern>   </filter-mapping> 
   <filter-mapping>       <filter-name>CAS HttpServletRequest Wrapper 
Filter</filter-name>       <url-pattern>/*</url-pattern>   </filter-mapping> 
......
 
So, based on above, am I using CAS 1 configuration or CAS 2 configuration for 
both applications-"Hello World" and B?  Also, determine if using CAS 1 or CAS 
2, it's based on the setting in web.xml?
 
If I am using CAS 1, how can I change above (web.xml) to become CAS 2?
 
Sorry for all the silly questions.
 
Thanks,
 
 
Alex




Date: Wed, 30 Jul 2008 11:29:11 -0400From: [EMAIL PROTECTED]: [EMAIL 
PROTECTED]; [EMAIL PROTECTED]: Re: CAS basic questions
On Wed, Jul 30, 2008 at 11:02 AM, Alex Johnson <[EMAIL PROTECTED]> wrote:


Hi, I am a newbie here. I follow the link 
http://www.ja-sig.org/wiki/display/CASUM/Demoto set up CAS on the following 
envirment. Windows XPTomcat 5.5.23CAS client 2.1.1CAS 3.2.1 my 
http://mymachinename:8080/servlets-examples/servlet/HelloWorldExampleworks. It 
is redirected to CAS login page. After I input login, it is redirected back to 
open "Hello World"Then I go a step forward to put another simple Java 
application (B) into Tomcat and pointed to the same CAS. It works too. I can 
open "Hello World" application and no need to login CAS again to open another 
application (B), or After I login into B, I don't need to login into CAS again 
for "Hello World" application My question is 1. After I make these work, am I 
in CAS 1 or CAS 2?
Well you're running CAS 3.2.1 and utilizing either the CAS1 or CAS2 protocol, 
depending on how you've configured your CAS client. 

2. I am using CAS client 2.1.1 or CAS server 3.2.1, does it mean I am using CAS 
2?
Using CAS 3.2.1 you have the optional of three protocols: CAS1, CAS2, SAML 1.1. 
 Since you're using the Yale CAS Client 2.1.1, you're only supporting CAS 1 or 
CAS2 on the client side.  Which one you are using depends on your 
configuration.  Both will work fine.-Scott 

 Thanks,  Alex_______________________________________________Yale CAS mailing 
[EMAIL PROTECTED]://tp.its.yale.edu/mailman/listinfo/cas
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to