PART I: CAS-JASIG installation under Ubuntu 12.04 (without SSL)

I. TOMCAT INSTALLATION

1.- Open a terminal as root:

# sudo su

2.- Download Tomcat:

# cd /opt
# wget http://apache.mesi.com.ar/tomcat/tomcat-6/v6.0.36/bin/apache-tomcat-6.0.36.zip

3.- Unzip the tomcat file:

# unzip  apache-tomcat-6.0.36.zip

4.- Rename your TOMCAT installation:

# mv apache-tomcat-6.0.36 tomcat-server

5.- Assign permissions to “bin” folder content:

# cd tomcat-server/bin/
# chmod u+x *

6.- We also need to add a new user in order to be able to access to the “Tomcat Manager”:

# cd ..
# gedit ./conf/tomcat-users.xml

And it should looks like this:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="admin"/>
<role rolename="manage"/>
<user username="tomcat" password="tomcat" roles="admin,manager"/>
</tomcat-users>

7.- Now you can start your TOMCAT server:

# sh /opt/tomcat-server/bin/catalina.sh start

II. CAS-JASIG INSTALLATION 1.- Download “CAS-Jasig” server:

# cd /opt/tomcat-server/webapps/
# wget http://downloads.jasig.org/cas/cas-server-3.5.2-release.zip

2.- Unzip the CAS-Jasig zip file:

# unzip cas-server-3.5.2-release.zip
# mv cas-server-3.5.2 cas-server-source

<strong>3.- Extract the .war file into your Tomcat webapps:</strong>

# cp cas-server/modules/cas-server-webapp-3.5.2.war .
# mv cas-server-webapp-3.5.2.war cas-server.war

4.- Restart the Tomcat server:

# sh /opt/tomcat-server/bin/catalina.sh stop
# sh /opt/tomcat-server/bin/catalina.sh start

5.- Finally you can access to cas-server through: http://localhost:8080/cas-server/login
cas1

NOTE: By default you should be able to make simple login by using the same word for username and password (E.g.: USERNAME:hello PASSWORD:hello

Anuncios

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s