[Building Sakai] Site Unavailable using CAS login
wendy lee
lhh at mail.sysu.edu.cn
Mon Dec 5 19:09:50 PST 2011
Thanks Steve,
It is really the configurate issue. Thanks.
--------------
wendy
>Hi Wendy Lee,
>
>I saw on the CAS lists the debug info you posted. There is an issue with your configuration. You have /p[ortal in the server name so you are ending up with the incorrect URL at the end:
>
>You are getting:
>> /portal/sakai-login-tool/container
>
>
>but it should be:
>> /sakai-login-tool/container
>
>
>You need to remove /portal from the serverName in the configuration (there are two places).
>
>cheers,
>Steve
>
>
>On 05/12/2011, at 4:43 PM, wendy lee wrote:
>
>> hi, all
>>
>> How can I turn on the sakai login debug info. I setting org.sakaiproject.login and org.jasig.cas to debug in sakai.properties. But no valuable info reports.
>> There are more debug info I can get? Thanks
>>
>> log.config.count = 2
>> log.config.1 = DEBUG.org.jasig.cas
>> log.config.2 = DEBUG.org.sakaiproject.login
>>
>> wendy lee
>>
>> 发件人: Steve Swinsburg
>> 发送时间: 2011-12-02 11:38
>> 收件人: wendy lee
>> 抄送: sakai-dev
>> 主题: Re: [Building Sakai] Site Unavailable using CAS login
>> You may need to ask on the CAS mailing list if the cas client 3.2 jar is compatible with CAS server 3.0. I have only tried it with CAS server 3.4.
>>
>> http://www.jasig.org/cas/mailing-lists
>>
>> cheers,
>> Steve
>>
>>
>>
>> On 02/12/2011, at 2:31 PM, wendy lee wrote:
>>
>>> hi, Steve
>>>
>>> Sakai version is 2.8.1 and cas-client-core-3.2.0.jar. CAS server is JA-SIG CAS 3.0.6
>>>
>>> login/login-tool/tool/pom.xml are:
>>> <dependency>
>>> <groupId>org.jasig.cas.client</groupId>
>>> <artifactId>cas-client-core</artifactId>
>>> <version>3.2.0</version>
>>> </dependency>
>>>
>>> wendy lee
>>>
>>> From: Steve Swinsburg
>>> Date: 2011-12-02 11:04
>>> To: wendy lee
>>> CC: sakai-dev
>>> Subject: Re: [Building Sakai] Site Unavailable using CAS login
>>> Hi,
>>>
>>> What version Sakai and what version casclient jar?
>>>
>>> cheers,
>>> Steve
>>>
>>>
>>> On 02/12/2011, at 1:55 PM, wendy lee wrote:
>>>
>>> > hi, all
>>> >
>>> > I configure sakai to use cas login. Sakai reports "Site Unavailable" ("The site you requested is not available.") after login with cas user "abc". I create a new sakai user whose userid is "abc". Login again but sakai still says "Site Unavailable". Why? After cas login, "Site Unavailable"'s url is http://localhost:8080/portal/sakai-login-tool/container?ticket=ST-723391-REvOoYdgQCHGjDzQd2r9WfICwM5d1Ab5yKP-20
>>> > my sakai-login-tool's web.xml are:
>>> > <?xml version="1.0" encoding="UTF-8"?>
>>> > <web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
>>> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
>>> > <display-name>xlogin</display-name>
>>> > <description>login</description>
>>> >
>>> > <filter>
>>> > <filter-name>sakai.request</filter-name>
>>> > <filter-class>org.sakaiproject.util.RequestFilter</filter-class>
>>> > </filter>
>>> >
>>> > <!-- Force request for /container through the request filter -->
>>> >
>>> > <filter-mapping>
>>> > <filter-name>sakai.request</filter-name>
>>> > <url-pattern>/*</url-pattern>
>>> > <dispatcher>REQUEST</dispatcher>
>>> > <dispatcher>FORWARD</dispatcher>
>>> > <dispatcher>INCLUDE</dispatcher>
>>> > </filter-mapping>
>>> >
>>> > <!-- end filter mapping addition -->
>>> >
>>> > <filter>
>>> > <filter-name>sakai.request.container</filter-name>
>>> > <filter-class>org.sakaiproject.util.RequestFilter</filter-class>
>>> > <init-param>
>>> > <param-name>tool.placement</param-name>
>>> > <param-value>true</param-value>
>>> > </init-param>
>>> > <init-param>
>>> > <param-name>remote.user</param-name>
>>> > <param-value>false</param-value>
>>> > </init-param>
>>> > </filter>
>>> >
>>> > <filter-mapping>
>>> > <filter-name>sakai.request</filter-name>
>>> > <servlet-name>sakai.login</servlet-name>
>>> > <dispatcher>REQUEST</dispatcher>
>>> > <dispatcher>FORWARD</dispatcher>
>>> > <dispatcher>INCLUDE</dispatcher>
>>> > </filter-mapping>
>>> >
>>> > <filter-mapping>
>>> > <filter-name>sakai.request.container</filter-name>
>>> > <servlet-name>sakai.login.container</servlet-name>
>>> > <dispatcher>REQUEST</dispatcher>
>>> > </filter-mapping>
>>> >
>>> > <filter>
>>> > <filter-name>NakamuraAuthenticationFilter</filter-name>
>>> > <filter-class>org.sakaiproject.login.filter.NakamuraAuthenticationFilter</filter-class>
>>> > </filter>
>>> >
>>> > <filter-mapping>
>>> > <filter-name>NakamuraAuthenticationFilter</filter-name>
>>> > <url-pattern>/container</url-pattern>
>>> > </filter-mapping>
>>> >
>>> > <!-- begin CAS servlet filter -->
>>> > <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://cas.sysu.edu.cn/cas/login</param-value>
>>> > </init-param>
>>> >
>>> > <init-param>
>>> > <param-name>serverName</param-name>
>>> > <param-value>http://localhost:8080/portal</param-value>
>>> > </init-param>
>>> > </filter>
>>> >
>>> > <filter>
>>> > <filter-name>CAS Validation Filter</filter-name>
>>> > <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
>>> >
>>> > <init-param>
>>> > <param-name>casServerUrlPrefix</param-name>
>>> > <param-value>https://cas.sysu.edu.cn/cas</param-value>
>>> > </init-param>
>>> >
>>> > <init-param>
>>> > <param-name>serverName</param-name>
>>> > <param-value>http://localhost:8080/portal</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>
>>> > <filter-name>CAS Assertion Thread Local Filter</filter-name>
>>> > <filter-class>org.jasig.cas.client.util.AssertionThreadLocalFilter</filter-class>
>>> > </filter>
>>> > <filter-mapping>
>>> > <filter-name>CAS Assertion Thread Local Filter</filter-name>
>>> > <url-pattern>/*</url-pattern>
>>> > </filter-mapping>
>>> >
>>> > <filter-mapping>
>>> > <filter-name>CAS Authentication Filter</filter-name>
>>> > <url-pattern>/container</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>
>>> > <!-- end CAS servlet filter -->
>>> >
>>> > <servlet>
>>> > <servlet-name>sakai.login</servlet-name>
>>> > <servlet-class>org.sakaiproject.login.tool.SkinnableLogin</servlet-class>
>>> > <init-param>
>>> > <param-name>container</param-name>
>>> > <param-value>/sakai-login-tool/container</param-value>
>>> > </init-param>
>>> > <load-on-startup>1</load-on-startup>
>>> > </servlet>
>>> >
>>> > <servlet>
>>> > <servlet-name>sakai.login.container</servlet-name>
>>> > <servlet-class>org.sakaiproject.login.tool.ContainerLogin</servlet-class>
>>> > <load-on-startup>1</load-on-startup>
>>> > </servlet>
>>> >
>>> > <!-- map the container login, and then cause it to trigger container authentication -->
>>> > <servlet-mapping>
>>> > <servlet-name>sakai.login.container</servlet-name>
>>> > <url-pattern>/container/*</url-pattern>
>>> > </servlet-mapping>
>>> >
>>> > <listener>
>>> > <listener-class>org.sakaiproject.util.ToolListener</listener-class>
>>> > </listener>
>>> >
>>> > </web-app>
>>> >
>>> > --------------
>>> >
>>> > wendy lee
>>> > _______________________________________________
>>> > sakai-dev mailing list
>>> > sakai-dev at collab.sakaiproject.org
>>> > http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>> >
>>> > TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>
>
More information about the sakai-dev
mailing list