About CAs what is not here is not to repeat, the Netizen likened it to the tourist attractions of the package, bought a ticket can see all the attractions, do not need a spot to buy a ticket ... We focus on the configuration of CAS single sign-on.
Tools/Materials
- 1. Configure the JDK environment, otherwise it is inconvenient to use the Keytool tool that comes with JDK;
- At least one database has been installed, this article takes SQLServer2008 as an example;
- 3. It is best to install the Myeclipse/eclipse and configure Tomcat, this article takes MyEclipse as an example;
- Download CAS server side and client program, this article takes Cas-server-3.4.10-release and cas-client-3.2.1-release as an example;
Modify the Hosts file
- 1
To modify the Hosts file in the C:\Windows\System32\drivers\etc directory, add the following line at the end:
127.0.0.1 fighting.com
This is the local IP to the domain name Mapping, the name can be casually, but not too casual, so that we can use the fighting.com when accessing the machine instead!
END
Server-Side deployment testing
- 1
Unzip the downloaded Cas-server-3.4.10-releas, locate the Cas-server-webapp-3.4.10.war package in the Cas-server-3.4.10\modules directory, unzip it to a folder, and name it CAs, Copy the war package to Tomcat, launch Tomcat, open the browser first enter https://fighting.com/ to see the Tomcat interface, the first step succeeds!
- 2
Then enter https://fighting.com/cas/login hibaosoft.com for our configuration in the Hosts file, see the following interface to indicate the success of the launch!
- 3
Click Continue to browse ... The CAs login screen appears, because of the settings in the program, here only requires the user name password consistent to be able to log in.
Post-Login Interface:
- 4
Logout address and interface:https://fighting.com/cas/logout
- 5
At this point we have completed the server-side deployment.
END
Precautions
- CAs can not be found here to download Http://pan.baidu.com/s/1o6BMtkQ
CAs Single Sign-on configuration [1]: Ready to work