標籤:ptr dvr esc mob srm pbm swp acm tsp
入手文章,大神繞行。
一。服務端搭建
我使用的服務端版本號碼為:cas-server-3.4.11-release.zip。解壓之後,將\cas-server-3.4.11-release\cas-server-3.4.11\modules\cas-server-webapp-3.4.11.war檔案改名為cas.war,放置到tomcat的Tomcat\webapps檔案夾下,之後啟動tomcat。
之後進入*****\Tomcat\webapps\cas檔案夾,改動兩個設定檔:
1。改動Tomcat\webapps\cas\WEB-INF\deployerConfigContext.xml檔案:
<bean class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler"p:httpClient-ref="httpClient" p:requireSecure="false"/>
2,改動Tomcat\webapps\cas\WEB-INF\spring-configuration\ticketGrantingTicketCookieGenerator.xml檔案:
<bean id="ticketGrantingTicketCookieGenerator" class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"p:cookieSecure="false"p:cookieMaxAge="-1"p:cookieName="CASTGC"p:cookiePath="/cas" /></beans>
之後在瀏覽器中輸入:http://localhost:8099/cas/login ,進行測試。開啟cas登入頁,輸入usernamepassword都為1,進行登入。(CAS-server的預設驗證規則:僅僅要username和password同樣就認證通過)。
當出現:
表示Server端已經ok了。
CAS(Central Authentication Service)——windows上簡單搭建及測試