Home > php教程 > php手册 > 三、记一次失败的 CAS 搭建 之 服务端配置

三、记一次失败的 CAS 搭建 之 服务端配置

WBOY
Release: 2016-06-13 09:32:52
Original
888 people have browsed it

=========================================================================================================

Setp3:Tomcat与cas服务端进行绑定操作::参考:http://www.open-open.com/lib/view/open1392018954614.html

=========================================================================================================

1、下载并与Tomcat安装Cas服务端

可以从 CAS 官网:http:<span>//</span><span>www.jasig.org/cas 下载,这可能需要翻墙,如果你不太愿意翻墙的话,可以访问这个地址:</span><span>http://downloads.jasig.org/cas/</span><span>,同样可以下载。</span>
Copy after login

2、合并到Tomcat

打开你刚刚下载好的安装包,下面有:/modules/cas-server-webapp-3.5.2.war 到 Tomcat 的 webapps 目录下,并重命名为 ROOT.war。
Copy after login

3、配置tomcat,使 Tomcat 支持 HTTPS,打开 Tomcat 目录下 的 conf/server.xml 文件。

<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="off" /><span>
SSLEngine配置为off,默认为on</span>
Copy after login
    <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"<span>
               maxThreads</span>="150" SSLEnabled="true" scheme="https" secure="true"<span>
               clientAuth</span>="false" sslProtocol="TLS" /><span>
其实这段在配置文件中是本身就存在的,只需要你复制一下,替换掉之前的就可以了!Tommat很近人意的嘛</span>
Copy after login

4、添加host本地路径

<span>127.0.0.1 cas</span>
Copy after login

接下来,就可以输入 https://cas:8443/login 进行访问了,帐号密码其实并不是网上说的什么帐号密码一致就OK,也许以前能用

现在貌似已经不能用了,帐号密码在 Tomcat安装目录\webapps\ROOT\WEB-INF\deployerConfigContext.xml 中有,搜索“users”关键词就能找到帐号密码了!

 

Related labels:
cas
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template