| where the username equals the password.You will need to replace this with an AuthenticationHandler that implements your
| local authentication strategy.You might accomplish this by coding a new such handler and declaring
| edu.someschool.its.cas.MySpecialHandler here, or you might use one of the handlers provided in the adaptors modules.
+-->
<!--<bean
class="org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler" />-->
<bean
class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler">
<property value="cn=%u" />
<property value="ou=Leader,dc=anystep,dc=com" />
<property
name="contextSource"
ref="contextSource" />
</bean>
</list>
</property>
</bean>
<bean>
<property value="true" />
<property value="secret" />
<property value="true" />
<property>
<list>
<value>ldap://192.168.1.6:389/</value>
</list>
</property>
<property value="cn=Manager, dc=anystep, dc=com" />
<property>
<map>
<entry>
<key><value>java.naming.security.authentication</value></key>
<value></value>
</entry>
</map>
</property>
</bean>
</beans>
蓝色的文字是您应该根据自己的LDAP设置进行修改的。至于这个文件具体每个部分为什么这么写,您可以在CAS的网站上自己研究。
然后在终端中执行命令:
cd cas-server-3.0.5/localPlugins
rm build -rf
rm target/ -rf
ant war
cp target/cas.war /srv//tomcat5/base/webapps/
service tomcat5 restart
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-29948-18.html
@小米公司
那就是统一之时
打个比方
加油