CAS 5.1.2 step by step documentation

815 views
Skip to first unread message

satheesh k

unread,
Aug 14, 2017, 5:26:45 AM8/14/17
to CAS Community
HI All,

We are implementing CAS 5.1.2 in our projct. I need to set up SSO with our application using CAS. I have read the documentation at https://apereo.github.io/cas/5.1.x/planning/Installation-Requirements.html
.We stuck on the implementation of CAS 5.1.2 in our project. Is there a step-by-step guide that will teach me how to perform these basic steps?

Thanks,
Satheesh. K

Uxío Prego

unread,
Aug 14, 2017, 9:23:36 AM8/14/17
to CAS Community

Uxío Prego

             

Madiva Soluciones
CL / SERRANO GALVACHE 56
BLOQUE ABEDUL PLANTA 4
28033 MADRID

+34 917 56 84 94
www.madiva.com
www.bbva.com

The activity of email inboxes can be systematically tracked by colleagues, business partners and third parties. Turn off automatic loading of images to hamper it.

--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/41a2f91f-fcbc-4b4d-8228-1d47ab672e68%40apereo.org.

Ng Sek Long

unread,
Aug 14, 2017, 11:01:44 PM8/14/17
to CAS Community
Don't know how basic you want the guide to be... Maybe try this? https://www.youtube.com/watch?v=RaWHNChzwaU

David Rodriguez Gonzalez

unread,
Aug 15, 2017, 5:13:23 AM8/15/17
to CAS Community
+1

How to set up Spring profiles?

--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.

Bob Dill

unread,
Aug 15, 2017, 1:06:13 PM8/15/17
to CAS Community

Uxio,


Thank you for the suggested links. I will read through them shortly. We actually have a previous version of CAS installed. Unfortunately, the person that installed it left, and I cannot continue where he left off, so I am reinstalling and configuring everything from scratch. I suggestions are greatly appreciated, and I will get back with you shortly.


~ Bob


From: cas-...@apereo.org <cas-...@apereo.org> on behalf of Uxío Prego <upr...@madiva.com>
Sent: Monday, August 14, 2017 8:23:32 AM
To: CAS Community
Subject: Re: [cas-user] CAS 5.1.2 step by step documentation
 
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CANidDKZFr%3DiazhMycknpFsT2GSg059s-d%3DjfUhgzB78qWOc3JA%40mail.gmail.com.

Bob Dill

unread,
Aug 17, 2017, 11:47:00 AM8/17/17
to CAS Community
Hi Satheesh,

I can send you my notes on how I installed CAS and got it working. I'm still struggling with the configuration now, but I thought that since we are both newbies we could both benefit from some collaboration. Let me know if you are interested. In the meantime, here's an easy way to get started.

1. Download the master WAR overlay project from:  https://github.com/apereo/cas-overlay-template/archive/master.zip
2. Unzip it, and run build.sh (in Linux) or build.cmd (in Windows). If you lack elevated privileges, the build will succeed, but you will notice some errors indicating that some files could not be copied. On Linux (I don't know about windows), as root, go to /etc and run 'mkdir -P cas/config'. This will make the cas config directory. Then, from the directory where you ran the build script copy, there will be an etc/cas/config directory. Copy the files in there (as root) to the directory you just created with mkdir. You no longer need to worry about the errors at the end of the build script.
3. Finally, deploy the cas.war file. The easiest way to do that is if you already have a tomcat installation set up for SSL (let me know if you need help with SSL too), simply copy the cas.war file to the webapps directory in your tomcat configuration. This will automatically deploy your cas application. Now, you can visit https://<your FQDN>:<your tomcat app port>/cas, and you will see the page.

This will get you to the point I'm at right now.

I hope this helps.

~ Bob

Edward

unread,
Sep 21, 2017, 3:08:54 AM9/21/17
to CAS Community
Hi Bob
i am exactly at same point as you now.
just finish buid and deploy both cas server & cas-management server.

i also able to configure cas-server authentication to connect to DBMS instead of using static user casuser/Mellon
way to do it is just follow this tutorial:

and to install HSQLDB can follow this:

now i am able to login to cas-server using the username & password i create in database.
but i cant access cas-management, as i always get this error;
Access Denied
You are not authorized to access this resource. Contact your CAS administrator for more info.

looks like cas-management no more read from the static user.properties.
do you have the solution for this?

Priit Serk

unread,
Sep 21, 2017, 3:33:44 AM9/21/17
to cas-...@apereo.org
CAS documentation is absolutely "awsome"...

user-details.properties
+37200000766=notused,ROLE_ADMIN        -> make sure that +37200000766 is principal!!!!!!


application.properties   -> make sure management picks it up
# Management
cas-management.host=http://....
cas-management.prefix=${cas-management.host}/cas-management
cas-management.securityContext.serviceProperties.service=${cas-management.prefix}/callback
cas-management.securityContext.serviceProperties.adminRoles=ROLE_ADMIN
pac4j.callback.defaultUrl=/manage.html
cas-management.viewResolver.basename=default_views

#this part I'm still debugging and trying to understand, which details file loc. path is correct and why it only works when I set adminRoles NULL
cas.mgmt.adminRoles=
user.details.file.location = file:/opt/tomcat/CAS/user-details.properties
cas.mgmt.userPropertiesFile=file:/opt/tomcat/CAS/user-details.properties

Will give update after getting my results from debugging. But this allows currently to log in to management.



--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG

---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

Varinder Kumar

unread,
Dec 20, 2017, 9:28:17 AM12/20/17
to CAS Community

Hi Bob,

We had a CAS 4.0.0 installed on the linux server and now I am trying to upgrade it with 5.1.3 however, I am getting many issues while doing this. I have performed the same steps that you have performed but its not working. It seems like that I am doing some thing wrong. Could you please provide me the step to step notes so that I can complete this task.

Thanks,
VK
Reply all
Reply to author
Forward
0 new messages