Hello, I can't resolve myself for subject.

I study SSO and make environment for CAS on Windows.

WebServer : Apache2 2.2.17 with OpenSSL
APServer1 : tomcat 6.0.32(tomcat1) ⇒ http://localhost:8080/
APServer2 : tomcat 6.0.32(tomcat2) ⇒ http://localhost:9080/

CAS Server : 3.4.7
cas-client : 3.1.6

 Apache2 and tomcat1, tomcat2 connect with mod_jk_1.2.31.
CAS with JDBC installed on tomcat1 and run 
correct(http://localhost:8080/cas/login).

 Now, on tomcat1 and tomcat2, setting CAS for /examples to
http://localhost:8080/cas/login.

 I expect under...

1. access to http://localhost:8080/examples/
2. redirect to http://localhost:8080/cas/login
3. after login success, redirect to http://localhost:8080/examples/
4. input URL to http://localhost:9080/examples/
5. already login success, so don't redirect http://localhost:8080/cas/login
   and display http://localhost:9080/examples/

 But now, after input URL like 4., redirect to http://localhost:8080/cas/login, 
and after login success, redirect to http://localhost:9080/examples/.
If once success, don't redirect...so, tomcat2 and CAS on tomcat1 is connect 
success, I think.

 Settings is this. And expect this, no changed.
Do you know where setting is wrong or stupid setting?
Or can't in different domain only their modules?


Thank you.

Chie.

[web.xml]...this is tomcat2, and difference is port on tomcat1.
<filter>
   <filter-name>CasSingleSignOutFilter</filter-name>
   <filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class>
</filter>
<filter>
  <filter-name>CasAuthenticationFilter</filter-name>
  
<filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
  <init-param>
    <param-name>casServerLoginUrl</param-name>
    <param-value>http://localhost:8080/cas/login</param-value>
  </init-param>
  <init-param>
    <param-name>serverName</param-name>
    <param-value>http://localhost:9080</param-value>
  </init-param>
</filter>
<filter>
    <filter-name>CasValidationFilter</filter-name>
    
<filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
    <init-param>
        <param-name>casServerUrlPrefix</param-name>
        <param-value>http://localhost:8080/cas</param-value>
    </init-param>
    <init-param>
        <param-name>serverName</param-name>
        <param-value>http://localhost:9080</param-value>
    </init-param>
    <init-param>
        <param-name>redirectAfterValidation</param-name>
        <param-value>true</param-value>
    </init-param>
</filter>
<filter>
  <filter-name>CasHttpServletRequestWrapperFilter</filter-name>
  
<filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
</filter>
<filter>
  <filter-name>CasAssertionThreadLocalFilter</filter-name>
  
<filter-class>org.jasig.cas.client.util.AssertionThreadLocalFilter</filter-class>
</filter>
<filter-mapping>
   <filter-name>CasSingleSignOutFilter</filter-name>
   <url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
    <filter-name>CasAuthenticationFilter</filter-name>
    <url-pattern>/index.html</url-pattern>
    <url-pattern>/examples/*</url-pattern>
</filter-mapping>
<filter-mapping>
    <filter-name>CasValidationFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
    <filter-name>CasHttpServletRequestWrapperFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
    <filter-name>CasAssertionThreadLocalFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
    
<listener-class>org.jasig.cas.client.session.SingleSignOutHttpSessionListener</listener-class>
</listener>

[httpd.conf]
LoadModule    jk_module  modules/mod_jk.so
JkWorkersFile "C:\Program Files\Apache Software 
Foundation\Apache2.2\conf\workers.properties"
JkLogFile     "C:\Program Files\Apache Software 
Foundation\Apache2.2\logs\mod_jk.log"
JkLogLevel    debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat     "%w %V %T"
JkMount  /jkstatus   jkstatus
JkMount  /servlets/* worker1
JkMount  /examples/* worker1
JkMount  /cas/* worker1

[worker.properties]
worker.jkstatus.type=status
worker.list=worker1, jkstatus
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=1

-- 
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