锘??xml version="1.0" encoding="utf-8" standalone="yes"?>1000精品久久久久久久久,免费在线一级视频,久久精品人人做人人综合http://www.aygfsteel.com/wangchangjun/category/48277.htmlzh-cnTue, 12 Apr 2011 04:26:42 GMTTue, 12 Apr 2011 04:26:42 GMT60cas3.4.3.1瀹㈡埛绔嬌鐢?/title><link>http://www.aygfsteel.com/wangchangjun/articles/348039.html</link><dc:creator>姹暱鍐?/dc:creator><author>姹暱鍐?/author><pubDate>Mon, 11 Apr 2011 02:30:00 GMT</pubDate><guid>http://www.aygfsteel.com/wangchangjun/articles/348039.html</guid><wfw:comment>http://www.aygfsteel.com/wangchangjun/comments/348039.html</wfw:comment><comments>http://www.aygfsteel.com/wangchangjun/articles/348039.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/wangchangjun/comments/commentRss/348039.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/wangchangjun/services/trackbacks/348039.html</trackback:ping><description><![CDATA[涓嬮潰浠嬬粛鐢╤ttp鍗忚浣跨敤cas鍗曠偣鐧誨綍緋葷粺銆?br /> 涓錛屽墠鎻愭潯浠?br />     1錛宑as鏈嶅姟鍣ㄩ儴緗叉祴璇曟垚鍔熴?br />     2錛屼笅杞絚as-client-core-3.1.10.jar鍒頒綘鐨勫簲鐢╨ib鐩綍涓嬨?br /> 浜岋紝瀹㈡埛绔厤緗紙榪欓噷浣跨敤spring鐨勬柟寮忔潵閰嶇疆錛宻pring鏈韓鐨勯厤緗繖閲屽氨涓嶆弿榪頒簡錛?br />     1錛岄厤緗畐eb.xml鏂囦歡錛宑as鏈?涓猣ilter闇瑕侀厤緗紝閰嶇疆欏哄簭涓嶈兘鏀瑰彉錛?br /> <br />          <filter><br />              <filter-name>CAS Single Sign Out Filter</filter-name><br />                  <filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class><br />             </filter> <p>        <filter><br />              <filter-name>CAS Authentication Filter</filter-name><br />              <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class><br />              <init-param><br />                   <param-name>targetBeanName</param-name><br />                   <param-value>casAuthenticationFilter</param-value><br />              </init-param><br />         </filter></p> <blockquote dir="ltr" style="margin-right: 0px"> <p><filter><br />  <filter-name>CAS Validation Filter</filter-name><br />  <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class><br />  <init-param><br />   <param-name>targetBeanName</param-name><br />   <param-value>casValidationFilter</param-value><br />  </init-param><br /> </filter></p> <p><filter><br />  <filter-name>CAS HttpServletRequestWrapperFilter</filter-name><br />  <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class><br />  <init-param><br />   <param-name>targetBeanName</param-name><br />   <param-value>casHttpServletRequestWrapperFilter</param-value><br />  </init-param><br /> </filter></p> <p><filter-mapping><br />  <filter-name>CAS Single Sign Out Filter</filter-name><br />  <url-pattern>*.do</url-pattern><br /> </filter-mapping></p> <p><filter-mapping><br />  <filter-name>CAS Authentication Filter</filter-name><br />  <url-pattern>*.do</url-pattern><br /> </filter-mapping></p> <p><filter-mapping><br />  <filter-name>CAS Validation Filter</filter-name><br />  <url-pattern>*.do</url-pattern><br /> </filter-mapping></p> <p><filter-mapping><br />  <filter-name>CAS HttpServletRequestWrapperFilter</filter-name><br />  <url-pattern>*.do</url-pattern><br /> </filter-mapping></p> </blockquote>        2錛宻pring鏂囦歡鐨勯厤緗紝鏂板涓涓猻pring閰嶇疆鏂囦歡錛屾枃浠跺悕闅忔剰錛屾垜榪欓噷鍙仛applicationContext-cas.xml錛屾枃浠跺唴瀹逛負<br /> <blockquote dir="ltr" style="margin-right: 0px"> <p><?xml version="1.0" encoding="UTF-8"?><br /> <beans xmlns="http://www.springframework.org/schema/beans"<br />  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"<br />  xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"<br />  xmlns:context="http://www.springframework.org/schema/context"<br />  xmlns:jee="http://www.springframework.org/schema/jee" xmlns:util="http://www.springframework.org/schema/util"<br />  xsi:schemaLocation="http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd"<br />  default-autowire="byName" default-lazy-init="false"></p> <p> <bean id="casAuthenticationFilter"<br />   class="org.jasig.cas.client.authentication.AuthenticationFilter"><br />   <property name="casServerLoginUrl" value="${<span style="color: red">cas.url</span>}/login" /><br />   <property name="serverName" value="${<span style="color: red">project.url</span>}" /><br />   <property name="renew" value="false" /><br />   <property name="gateway" value="false" /><br />   <br />  </bean></p> <p> <bean id="casValidationFilter"<br />   class="org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter"><br />   <property name="ticketValidator"><br />    <ref bean="Cas20ServiceTicketValidator" /><br />   </property><br />   <property name="useSession" value="true" /><br />   <property name="serverName" value="${<span style="color: red">project.url</span>}" /><br />   <property name="redirectAfterValidation" value="true" /><br />  </bean></p> <p> <bean id="Cas20ServiceTicketValidator"<br />   class="org.jasig.cas.client.validation.Cas20ServiceTicketValidator"><br />   <constructor-arg index="0" value="${<span style="color: red">cas.url</span>}" /><br />  </bean></p> <p> <bean id="casHttpServletRequestWrapperFilter"<br />   class="org.jasig.cas.client.util.HttpServletRequestWrapperFilter" /><br /> </beans></p>  涓婇潰綰㈣壊閮ㄥ垎鐨勬剰鎬濇槸錛?<span style="color: red">cas.url鏄綘cas鏈嶅姟鍣ㄧ殑鍦板潃錛?span style="color: red">project.url</span>鏄綘瀹㈡埛绔簲鐢ㄧ殑鍦板潃銆備笅闈㈡槸鎴戞湰鍦扮殑閰嶇疆<br /> <p>    #cas鏈嶅姟鍣ㄥ湴鍧<br />     cas.url=http://127.0.0.1:8080/cas<br />     #瀹㈡埛绔痷rl鍦板潃<br />     project.url=http://127.0.0.1:8080<br /> <br /> </span>3錛屽鎴風鏁版嵁搴撶殑閰嶇疆</p> </blockquote> <blockquote dir="ltr" style="margin-right: 0px"> <p>    寤鴻cas鏈嶅姟鍣ㄥ拰瀹㈡埛绔叕鐢ㄥ悓涓涓暟鎹簱錛屽鏋滃垎寮錛屽氨浼氭秹鍙婂埌鏁版嵁鍚屾闂銆?/p> </blockquote> <img src ="http://www.aygfsteel.com/wangchangjun/aggbug/348039.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/wangchangjun/" target="_blank">姹暱鍐?/a> 2011-04-11 10:30 <a href="http://www.aygfsteel.com/wangchangjun/articles/348039.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>cas3.4.3.1閮ㄧ講http://www.aygfsteel.com/wangchangjun/articles/348035.html姹暱鍐?/dc:creator>姹暱鍐?/author>Mon, 11 Apr 2011 01:57:00 GMThttp://www.aygfsteel.com/wangchangjun/articles/348035.htmlhttp://www.aygfsteel.com/wangchangjun/comments/348035.htmlhttp://www.aygfsteel.com/wangchangjun/articles/348035.html#Feedback0http://www.aygfsteel.com/wangchangjun/comments/commentRss/348035.htmlhttp://www.aygfsteel.com/wangchangjun/services/trackbacks/348035.html   1銆丱S銆丣DK銆乀OMCAT瀹夎鐣?br />   2銆丆AS Server錛?br />     a.涓嬭澆錛歸get http://downloads.jasig.org/cas/cas-server-3.4.3.1-release.tar.gz
    b.瑙e帇錛歵ar xzvf cas-server-3.4.3.1-release.tar.gz
    c.瀹夎錛歝p cas-server-3.4.3.1/modules/cas-server-webapp-3.4.3.1.war $TOMCAT_HOME/webapps/cas.war
    d.鍚姩錛氬惎鍔╰omcat
  3銆佹祴璇旵AS Server錛?br />     璁塊棶http://serverip:8080/cas錛岄粯璁ら獙璇佹柟寮忎負鐢ㄦ埛鍚嶅拰瀵嗙爜涓鑷村嵆閫氳繃
鏁版嵁婧愰厤緗?br />     CAS榛樿璁劇疆涓哄彧瑕佺敤鎴峰悕鍜屽瘑鐮佺浉鍚岋紝鍗沖彲榪涜鐧誨綍錛岃繖鍦ㄧ幇瀹炰嬌鐢ㄤ腑鏄笉鍏佽鐨勩備笅闈粙緇嶅浣曚慨鏀筩as鏁版嵁婧?br />     1銆佺紪杈慍AS Server鐨勯厤緗枃浠訛紙webapps/cas/WEB-INF/deployerConfigContext.xml錛夊睆钄藉師鏈夐獙璇佹柟娉曪細錛堟敞閲婃帀璇ヨ錛?br />     <bean class="org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler" />

     2銆佸姞鍏ラ氳繃璁塊棶鏁版嵁搴撹繘琛岄獙璇佺殑handler錛?br />     <bean class="org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler">
        <property name="sql" value="select password from user where username=?" />
        <property name="dataSource" ref="dataSource" />
        <property name="passwordEncoder" ref="myPasswordEncoder" />
    </bean>

    3銆佸姞鍏ヤ竴涓暟鎹簱榪炴帴鐨?lt;bean>錛?br />     <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
        <property name="driverClassName" value="com.mysql.jdbc.Driver"></property>
        <property name="url" value="jdbc:mysql://192.168.1.37:3306/casuser"></property>
        <property name="username" value="dbuser"></property>
        <property name="password" value="dbpass"></property>
    </bean> 榪欓噷鐨刣ataSource鐜板湪閰嶇疆鐨勬槸mysql錛屽鏋滀綘浠殑搴旂敤涓笉鏄痬ysql錛岄偅灝遍厤緗浉搴旂殑鏁版嵁婧愭妸銆?br />
    4銆佸鏋減assword瀛楁鏄疢D5鍔犲瘑瀛樺偍鐨勶紝鍙互鍐嶅鍔犱竴涓猙ean錛?br />     <bean id="myPasswordEncoder" class="org.jasig.cas.authentication.handler.DefaultPasswordEncoder">
      <constructor-arg value="MD5"/>
    </bean>

閫氳繃浠ヤ笂姝ラ錛宑as鏈嶅姟鍣ㄥ氨閮ㄧ講濂戒簡銆?

]]>
主站蜘蛛池模板: 东台市| 扶沟县| 博客| 旌德县| 陇西县| 广昌县| 渝中区| 化德县| 南汇区| 古蔺县| 玉门市| 彭泽县| 武冈市| 秦安县| 上虞市| 会昌县| 随州市| 林口县| 六安市| 峨山| 博客| 龙门县| 沾化县| 鄂托克旗| 同心县| 赤壁市| 新沂市| 革吉县| 临江市| 大理市| 鸡东县| 屏山县| 泊头市| 冷水江市| 新乡县| 拜城县| 紫阳县| 镇沅| 朝阳区| 甘南县| 句容市|