JASIG-CAS學習筆記——初探CAS

http://www.ibm.com/developerworks/cn/opensource/os-cn-cas/html

http://steven-wiki.readthedocs.org/en/latest/security/cas-tomcat/#authenticationhanldersql

http://blog.sina.com.cn/s/articlelist_1549622495_0_1.htmltomcat

 

Cas Server MD5加密:ui

<property name="authenticationHandlers">
            <list>
                <bean class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler" 
              p:httpClient-ref
="httpClient" p:requireSecure="false" /> <!-- <bean class="org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler" /> --> <bean class="org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler"> <property name="dataSource" ref="dataSource" /> <property name="sql" value="SELECT PASSWORD FROM USERS WHERE USERNAME = ?" /> <property name="passwordEncoder" ref="passwordEncoder"/> </bean> </list> </property>

加密的是32位小寫的,大小寫敏感。加密

<bean id="passwordEncoder" class="org.jasig.cas.authentication.handler.DefaultPasswordEncoder">
        <constructor-arg value="MD5"/>
    </bean>
相關文章
相關標籤/搜索