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

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

Jun 13, 2016 am 09:32 AM
cas

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

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”关键词就能找到帐号密码了!

 

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Implement PHP security verification through CAS (Central Authentication Service) Implement PHP security verification through CAS (Central Authentication Service) Jul 24, 2023 pm 12:49 PM

PHP security verification through CAS (CentralAuthenticationService) With the rapid development of the Internet, user rights management and identity verification are becoming more and more important. When developing web applications, it is crucial to protect user data and prevent unauthorized access. In order to achieve this goal, we can use CAS (CentralAuthenticationService) for PHP security verification. CAS

What is the concept of java CAS What is the concept of java CAS May 03, 2023 pm 09:34 PM

1. Explain that when multiple threads perform CAS operations on a resource at the same time, only one thread succeeds, but it will not block other threads, and other threads will only receive a signal that the operation failed. It can be seen that CAS is actually an optimistic lock. 2. Following the AtomInteger code, we can find that sum.misc.Unsafe is finally called. Look at the name Unsafe, it's an unsafe class that exploits just the right holes in Java's class and visibility rules. For the sake of speed, Unsafe makes some compromises on Java's security standards. publicfinalnativebooleancompareAndSwapInt(Objec

How to use CAS and java optimistic locking How to use CAS and java optimistic locking May 01, 2023 pm 08:07 PM

What is CASCAS is CompareAndSwap, that is, compare and swap. Why does CAS not use locks but still ensure safe data manipulation under concurrent conditions? The name actually shows the principle of CAS very intuitively. The specific process of modifying data is as follows: When using CAS to operate data, the original value of the data and the value to be modified are Pass it to the method to compare whether the current target variable value is the same as the original value passed in. If they are the same, it means that the target variable has not been modified by other threads. Just modify the target variable value directly. If the target variable value is different from the original value, then prove the target variable. It has been modified by other threads. This CAS modification failed. From the above process, we can see that CAS actually guarantees safe modification of data, but there are cases where the modification fails.

How to apply CAS in java How to apply CAS in java Apr 18, 2023 pm 06:37 PM

CAS explanation: CAS (compareandswap), compare and exchange. A mechanism that can solve the performance loss caused by using locks in multi-thread parallel situations. The CAS operation contains three operands—memory location (V), expected original value (A) and new value (B). If the value of a memory location matches the expected original value, the processor automatically updates the location to the new value. Otherwise, the processor does nothing. A thread gets the num value from the main memory and operates on num. When writing the value, the thread will compare the first num value obtained with the num value in the main memory. If they are equal, the changed value will be num is written into the main memory. If they are not equal, the comparison will be looped until successful. Made by CAS

Java lock concurrency, lock-free concurrency and CAS example analysis Java lock concurrency, lock-free concurrency and CAS example analysis May 23, 2023 pm 01:34 PM

Locked concurrency For most programmers (of course I am basically one of them), concurrent programming is almost equivalent to adding a lock (Mutex) to the relevant data structure. For example, if we need a stack that supports concurrency, the simplest way is to add a lock std::sync::Mutex to a single-threaded stack. (Arc is added to allow multiple threads to have ownership of the stack) usestd::sync::{Mutex,Arc};#[derive(Clone)]structConcurrentStack{inner:Arc,}implConcurrentStack{pubfnnew()-> Self{

Real interview question: Please talk about the CAS mechanism in concurrency Real interview question: Please talk about the CAS mechanism in concurrency Jul 26, 2023 pm 03:05 PM

In the program, I created 100 threads, and each thread accumulated 10,000 operations on the shared variable inc. If it is executed synchronously, the final value of inc should be 1,000,000, but we know that in multi-threading, the program is concurrent executed, that is to say, different threads may read the same value from the main memory at the same time.

How to build CAS Client based on springboot How to build CAS Client based on springboot May 14, 2023 am 10:46 AM

1. Create a new springboot project and introduce the dependency org.jasig.cas.clientcas-client-support-springboot3.6.22. Configure the @EnableCasClient annotation packagecom.codetiler.demo;importorg.jasig.cas.client.boot.configuration.EnableCasClient;importorg. springframework.boot.SpringApplication;importorg.spring

The interviewer asks you: Do you know what an ABA problem is? The interviewer asks you: Do you know what an ABA problem is? Jul 26, 2023 pm 03:09 PM

This issue is about the analysis of a classic ABA problem in the CAS field. I don’t know if you have encountered it in actual work, but this is the focus of the concurrency knowledge test in the interview. If you haven't come across this kind of problem, my suggestion is to run the above code yourself.

See all articles