在修改cas-server(二)中,虽然修改了jdbc,但是还是只能判断用户名/密码。
如果需要多增加一个参数,如systemid,则需要修改cas-server-core.jar的源码。
参考:http://blog.csdn.net/lovesummerforever/article/details/38023385
1.修改login-webflow.xml
<binder>
<binding property="username" />
<binding property="password" />
<binding property="systemId" />
</binder>
2.修改casLoginView.jsp
增加系统id
<div class="row fl-controls-left">
<label for="systemId" class="fl-label">系统id:</label>
<input id="systemId" name="systemId" class="required" tabindex="2" accesskey="p" size="25" autocomplete="off">
</div>
3.修改cas-server-core.jar的源代码。
修改UsernamePasswordCredentials.java
/*
* Copyright 2007 The JA-SIG Collaborative. All rights reserved. See license
* distributed with this file