CAS 6.1.0-RC5-SNAPSHOT --- Management & Status Dashboard installition requirements

140 views
Skip to first unread message

M.Pedis

unread,
Jul 16, 2019, 8:26:55 AM7/16/19
to CAS Community

         Hi Everyone ,

I successfully deployed CAS 6.1.0-RC5-SNAPSHOT and i am able to login with ldap account. Everything works properly up to this point. I just want to deploy cas management for manage json-services but i could not deploy cas-management web ui.
I added ldap and service-registry dependincies to build.gradle file , then it build cas-management.war successfully.  (https://github.com/apereo/cas-management-overlay)

build.gradle file ;

dependencies {
    if (project.hasProperty("external"))
    {
        compile "org.apereo.cas:cas-mgmt-webapp:${project.'casmgmt.version'}"
    } else
    {
        compile "org.apereo.cas:cas-mgmt-webapp${project.appServer}:${project.'casmgmt.version'}"
    }
    compile "org.apereo.cas:cas-server-support-ldap:${project.'casmgmt.version'}"
    compile "org.apereo.cas:cas-server-support-json-service-registry:${project.'casmgmt.version'}"
                  }


Could someone help me about configuration of cas.properties and cas.management properties? What should i write in it to gain access for cas-management web page, and also cas-status dashboard?

Thanks for all your help and guidence...


abdelrahman halawa

unread,
Jul 16, 2019, 9:03:33 AM7/16/19
to cas-...@apereo.org

--
- 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+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/f997b827-43f4-4421-8246-b52749c7e90c%40apereo.org.


--
Best regards,
------------------------------------
photo 
Abdelrahman Halawa
Teacher Assistant, Computer and Systems Department, Al-Azhar University
+2 01008131693 | abdelrah...@gmail.com | Skype: abdelrahmanhalawa | Maadi, Cairo, Egypt

M.Pedis

unread,
Jul 17, 2019, 4:37:41 AM7/17/19
to CAS Community
 Hi Abdelrahman ,

I followed every steps but it couldn work for me , i think i miss something or configure wrong. Could you please share an example configuration for admin-dashboard ( also json file ) and cas-management compatible with cas-server 6.1.0-RC5-SNAPSHOT version?
I wrote my cas properties below and services file ;

cas.properties ; (it properly works )


cas.server.name:https://cas.xxxxxxx.edu.tr:8443
server.prefix=${server.name}/cas

cas.authn.accept.users=

logging.config: file:/etc/cas/config/log4j2.xml

cas.tgc.secure:true
#
cas.tgc.crypto.encryption.key:r88iOMdbRMLOkITV54kax4WgadTdzUYSBXNhOp_oqS0
cas.tgc.crypto.signing.key:bMpP_eHgIsL1kz_cnxEqYo9Bb384V70eZIvWctQ5V6xTO4P6wsQjFlglD9OSQNlFdb0mT2Q1E3qXdo05_tzrjQ
cas.webflow.crypto.encryption.key:Kmj1JJSPOTSiagI4gCxhUA==
cas.webflow.crypto.signing.key:hGapVlP6pCzIUo_CCboRszQpvWFPazmyuWsBUOoWYqUQqMKw55al5c_EGH6VBtjpIVUqEAXcvLQjQ8HaVBEmDw
#
cas.authn.ldap[0].type=AUTHENTICATED
cas.authn.ldap[0].principalAttributeList=cn,givenName,userPrincipalName,description
cas.authn.ldap[0].bindDn=cn=Users,DC=xxx,DC=edu,DC=tr
cas.authn.ldap[0].ldapUrl=ldap://192.168.98.60:389
#cas.authn.ldap[0].searchFilter=cn={user}
cas.authn.ldap[0].searchFilter=(userPrincipalName={user})
cas.authn.ldap[0].bindDn=cn=CAS ldap,cn=users,dc=xxxx,dc=edu,dc=tr
cas.authn.ldap[0].bindCredential=xxxxxxxxxxxx
cas.authn.ldap[0].baseDn=OU=Domain Users,DC=xxxxxxx,DC=edu,DC=tr
cas.authn.ldap[0].subtreeSearch=true
cas.authn.ldap[0].useSsl=false
#
#cas.mgmt.serverName:${cas.server.name}

/etc/cas/services--- =

CASAdminDashboard-1563349460.json
{
  "@class" : "org.apereo.cas.services.RegexRegisteredService",
  "serviceId" : "^https://cas.xxxxx.edu.tr:8443/cas/status/dashboard(\\z|/.*)",
  "name" : "CAS Admin Dashboard",
  "id" : 1563349460,
  "description" : "CAS dashboard and administrative endpoints",
  "evaluationOrder" : 5000
}

CASServiceManagement-1563352362.json
{
  "@class" : "org.apereo.cas.services.RegexRegisteredService",
  "serviceId" : "^https://cas.xxxxx.edu.tr:8443/cas-management(\\z|/.*)",
  "name" : "CAS Services Management",
  "id" : 1563352362,
  "description" : "CAS services management webapp",
  "evaluationOrder" : 5500
}



What do i need to add cas.properties , management.properties , users.json .. _?

Thanks



abdelrahman halawa

unread,
Jul 17, 2019, 9:52:09 AM7/17/19
to cas-...@apereo.org
Hi,
The JSON files are good.
Below, my suggestion configurations:
------------cas.properties----------------- 
management.contextPath=/status
management.security.enabled=true
management.security.roles=ACTUATOR,ADMIN
management.security.sessions=if-required
cas.adminPagesSecurity.actuatorEndpointsEnabled=true
cas.monitor.endpoints.enabled=true
endpoints.enabled=true
cas.adminPagesSecurity.ip=127\\.0\\.0\\.1
cas.monitor.endpoints.sensitive=false
endpoints.sensitive=false
cas.adminPagesSecurity.loginUrl=${cas.server.prefix}/login
cas.adminPagesSecurity.service=${cas.server.prefix}/status/dashboard
cas.adminPagesSecurity.users=file:etc/cas/config/adminusers.properties //file contains the authorized users, who will uses CAS
cas.adminPagesSecurity.adminRoles[0]=ROLE_ADMIN

----------------------adminusers.properties----------------------
casuser=notused,ROLE_ADMIN

--------------------Management.properties-----------------------
cas.server.name=https://xxxxxxxxxxx
cas.server.prefix=${cas.server.name}/cas
mgmt.adminRoles[0]=ROLE_ADMIN
mgmt.userPropertiesFile= file:etc/cas/config/adminusers.properties 

mgmt.serverName=https://xxxxxxxx:8443
server.context-path=/cas-management
cas.serviceRegistry.json.location=file:xxxxxxxxxxxxxxxxxxx //path to the folder, which contains JSON files
cas.serviceRegistry.initFromJson=true


--
- 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+u...@apereo.org.

M.Pedis

unread,
Jul 19, 2019, 3:14:43 AM7/19/19
to CAS Community
Hi ,

I tried with this settings but still can not access both sites. ( status page and management ) . I comment out management settings and just configured with status page settings but again it could not access or view status page. Do you have any running configuration compatible with cas6.0.x ( cas-server and management )  , i will try to use it as sample.
Thank you.



17 Temmuz 2019 Çarşamba 16:52:09 UTC+3 tarihinde abdelrahman halawa yazdı:
To unsubscribe from this group and stop receiving emails from it, send an email to cas-...@apereo.org.


--
Best regards,
------------------------------------
photo 

Abdelrahman Halawa
Teacher Assistant, Computer and Systems Department, Al-Azhar University
+2 01008131693 | abdelrahmanhalawa...@gmail.com | Skype: abdelrahmanhalawa | Maadi, Cairo, Egypt

M.Pedis

unread,
Sep 9, 2019, 5:15:48 AM9/9/19
to CAS Community
Could anyone can post here a running management.properties file ? ( My env ; CAS -- v. 6.0.4 , works with ldap ) ( ı just want to deploy cas-management for my domain --- as we seen in demo - http://casservermgmt.herokuapp.com/cas-management/  , i just want to reach cas-management page for my domain .)

Thank you.


19 Temmuz 2019 Cuma 10:14:43 UTC+3 tarihinde M.Pedis yazdı:
Reply all
Reply to author
Forward
0 new messages