Re: [cas-user] Cas 5.0.2 et Cas Services Management : tables containing services registry are deleted every time I stop tomcat

2017-02-18 Thread Dmitriy Kopylenko
Make sure that this property is set to “update”:

cas.serviceRegistry.jpa.ddlAuto=update

Or even better, in production never rely on this Hibernate feature to mess with 
your DB schema during bootstrap. I’d recommend, creating the schema via this 
Hibernate mechanism once in dev/test environment then “export” the DDL by 
native RDBMS means and manually create/maintain this DB schema in production. 
Set this prop in prod to cas.serviceRegistry.jpa.ddlAuto=none

Cheers,
D.


From: Ayé Rayé 
Reply: cas-user@apereo.org 
Date: February 18, 2017 at 2:19:34 PM
To: CAS Community 
Subject:  [cas-user] Cas 5.0.2 et Cas Services Management : tables containing 
services registry are deleted every time I stop tomcat  

Hello hello,

I did a CAS 5.0.2 installation with Cas Services Management installed with 
persistent services on MariaDB database. It seems to me that everything works 
well except that:
Each time the Tomcat is stopped, the tables in the database containing the 
services registry are deleted. When I start the Tomcat, the tables are 
recreated and of course my previous additions of services are lost.

What did I miss in my setup? Thanks for your help.


In cas.properties
 cas.serviceRegistry.jpa.healthQuery=SELECT 1 FROM 
INFORMATION_SCHEMA.SYSTEM_VARIABLES
# cas.serviceRegistry.jpa.isolateInternalQueries=false
 cas.serviceRegistry.jpa.url=jdbc:mysql://127.0.0.1:3307/cas-service-registry
# cas.serviceRegistry.jpa.failFast=true
 cas.serviceRegistry.jpa.dialect=org.hibernate.dialect.MySQL5Dialect
# cas.serviceRegistry.jpa.leakThreshold=10
# cas.serviceRegistry.jpa.batchSize=1
# cas.serviceRegistry.jpa.defaultCatalog=
# cas.serviceRegistry.jpa.defaultSchema=
 cas.serviceRegistry.jpa.user=root
# cas.serviceRegistry.jpa.ddlAuto=create-drop
 cas.serviceRegistry.jpa.password=root
 cas.serviceRegistry.jpa.autocommit=true
 cas.serviceRegistry.jpa.driverClass=com.mysql.cj.jdbc.Driver
 cas.serviceRegistry.jpa.idleTimeout=5000

# cas.serviceRegistry.jpa.pool.suspension=false
# cas.serviceRegistry.jpa.pool.minSize=6
# cas.serviceRegistry.jpa.pool.maxSize=18
# cas.serviceRegistry.jpa.pool.maxIdleTime=1000
# cas.serviceRegistry.jpa.pool.maxWait=2000


in management.properties
cas.serviceRegistry.initFromJson=false

cas.serviceRegistry.jpa.healthQuery=SELECT 1 FROM 
INFORMATION_SCHEMA.SYSTEM_VARIABLES
# cas.serviceRegistry.jpa.isolateInternalQueries=false
 cas.serviceRegistry.jpa.url=jdbc:mysql://127.0.0.1:3307/cas-service-registry
# cas.serviceRegistry.jpa.failFast=true
 cas.serviceRegistry.jpa.dialect=org.hibernate.dialect.MySQL5Dialect
# cas.serviceRegistry.jpa.leakThreshold=10
# cas.serviceRegistry.jpa.batchSize=1
# cas.serviceRegistry.jpa.defaultCatalog=
# cas.serviceRegistry.jpa.defaultSchema=
 cas.serviceRegistry.jpa.user=root
 cas.serviceRegistry.jpa.ddlAuto=
 cas.serviceRegistry.jpa.password=root
 cas.serviceRegistry.jpa.autocommit=true
 cas.serviceRegistry.jpa.driverClass=com.mysql.cj.jdbc.Driver
 cas.serviceRegistry.jpa.idleTimeout=5000

# cas.serviceRegistry.jpa.pool.suspension=false
# cas.serviceRegistry.jpa.pool.minSize=6
# cas.serviceRegistry.jpa.pool.maxSize=18
# cas.serviceRegistry.jpa.pool.maxIdleTime=1000
# cas.serviceRegistry.jpa.pool.maxWait=2000


--
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/368d3011-07ab-4f83-879d-d7674cc2dab1%40apereo.org.

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/etPan.58a8c418.6c7e20b2.29a%40unicon.net.


[cas-user] Cas 5.0.2 et Cas Services Management : tables containing services registry are deleted every time I stop tomcat

2017-02-18 Thread Ayé Rayé
Hello hello,

I did a CAS 5.0.2 installation with Cas Services Management installed with 
persistent services on MariaDB database. It seems to me that everything 
works well except that:
Each time the Tomcat is stopped, the tables in the database containing the 
services registry are deleted. When I start the Tomcat, the tables are 
recreated and of course my previous additions of services are lost.

What did I miss in my setup? Thanks for your help.


*In cas.properties*
 cas.serviceRegistry.jpa.healthQuery=SELECT 1 FROM 
INFORMATION_SCHEMA.SYSTEM_VARIABLES
# cas.serviceRegistry.jpa.isolateInternalQueries=false
 cas.serviceRegistry.jpa.url=jdbc:mysql://127.0.0.1:3307/cas-service-registry
# cas.serviceRegistry.jpa.failFast=true
 cas.serviceRegistry.jpa.dialect=org.hibernate.dialect.MySQL5Dialect
# cas.serviceRegistry.jpa.leakThreshold=10
# cas.serviceRegistry.jpa.batchSize=1
# cas.serviceRegistry.jpa.defaultCatalog=
# cas.serviceRegistry.jpa.defaultSchema=
 cas.serviceRegistry.jpa.user=root
# cas.serviceRegistry.jpa.ddlAuto=create-drop
 cas.serviceRegistry.jpa.password=root
 cas.serviceRegistry.jpa.autocommit=true
 cas.serviceRegistry.jpa.driverClass=com.mysql.cj.jdbc.Driver
 cas.serviceRegistry.jpa.idleTimeout=5000

# cas.serviceRegistry.jpa.pool.suspension=false
# cas.serviceRegistry.jpa.pool.minSize=6
# cas.serviceRegistry.jpa.pool.maxSize=18
# cas.serviceRegistry.jpa.pool.maxIdleTime=1000
# cas.serviceRegistry.jpa.pool.maxWait=2000


in *management.properties*


*cas.serviceRegistry.initFromJson=falsecas.serviceRegistry.jpa.healthQuery=SELECT
 
1 FROM INFORMATION_SCHEMA.SYSTEM_VARIABLES# 
cas.serviceRegistry.jpa.isolateInternalQueries=false 
cas.serviceRegistry.jpa.url=jdbc:mysql://127.0.0.1:3307/cas-service-registry# 
cas.serviceRegistry.jpa.failFast=true 
cas.serviceRegistry.jpa.dialect=org.hibernate.dialect.MySQL5Dialect# 
cas.serviceRegistry.jpa.leakThreshold=10# 
cas.serviceRegistry.jpa.batchSize=1# 
cas.serviceRegistry.jpa.defaultCatalog=# 
cas.serviceRegistry.jpa.defaultSchema= cas.serviceRegistry.jpa.user=root 
cas.serviceRegistry.jpa.ddlAuto= cas.serviceRegistry.jpa.password=root 
cas.serviceRegistry.jpa.autocommit=true 
cas.serviceRegistry.jpa.driverClass=com.mysql.cj.jdbc.Driver 
cas.serviceRegistry.jpa.idleTimeout=5000# 
cas.serviceRegistry.jpa.pool.suspension=false# 
cas.serviceRegistry.jpa.pool.minSize=6# 
cas.serviceRegistry.jpa.pool.maxSize=18# 
cas.serviceRegistry.jpa.pool.maxIdleTime=1000# 
cas.serviceRegistry.jpa.pool.maxWait=2000*


-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/368d3011-07ab-4f83-879d-d7674cc2dab1%40apereo.org.


[cas-user] How do you guys edit deployerConfigContext.xml & managementConfigContext.xml

2017-02-18 Thread RJ
I am having hard time editing these files. Most of the documentation points 
to 4.x while we are on 5.0.x.

I can't get simple things working such as JSON persistence and being able 
to create services in services management app.. basic requirement is that 
same (JSON) persistence service registry need to be configured in both CAS 
and its Services Management Webapp..

Do you guys use an IDE to edit these files ? Thx

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/624dc31a-f328-4d4d-a198-b202d1942925%40apereo.org.


Re: [cas-user] problem retrieving ldap attributes CAS 4.2.x

2017-02-18 Thread z mortazavi
hi
I have the same problem
any help?

On Sat, Feb 18, 2017 at 5:56 AM, rbon  wrote:

> I am unable to retrieve attributes from LDAP. I suspect my problem is a
> simple config error/typo.
> I have followed instructions here, https://apereo.github.io/cas/4
> .2.x/installation/LDAP-Authentication.html
>
> Can someone please help me get LDAP attributes?
>
> deployerConfig.xml
> 
> http://www.springframework.org/schema/beans;
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>xmlns:context="http://www.springframework.org/schema/context;
>xmlns:p="http://www.springframework.org/schema/p;
>xmlns:c="http://www.springframework.org/schema/c;
>xmlns:aop="http://www.springframework.org/schema/aop;
>xmlns:tx="http://www.springframework.org/schema/tx;
>xmlns:util="http://www.springframework.org/schema/util;
>xmlns:sec="http://www.springframework.org/schema/security;
>xmlns:ldaptive="http://www.ldaptive.org/schema/spring-ext;
>xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
>http://www.springframework.org/schema/tx
> http://www.springframework.org/schema/tx/spring-tx.xsd
>http://www.springframework.org/schema/aop
> http://www.springframework.org/schema/aop/spring-aop.xsd
>http://www.springframework.org/schema/context
> http://www.springframework.org/schema/context/spring-context.xsd
>http://www.springframework.org/schema/security
> http://www.springframework.org/schema/security/spring-security.xsd
>http://www.springframework.org/schema/util
> http://www.springframework.org/schema/util/spring-util.xsd
>http://www.ldaptive.org/schema/spring-ext
> http://www.ldaptive.org/schema/spring-ext.xsd;>
>
>
> 
> 
> 
>
> 
> 
> 
> 
>
>p:backingMap-ref="attrRepoBackingMap" />
>
>  "primaryAuthenticationHandler" />
>  "primaryPrincipalResolver" />
>
> 
> 
> 
> 
> 
> memberOf
> 
> faculty
> staff
> org
> 
> 
> 
>
> 
>
> 
>
> 
>
>  "grantingTicketExpirationPolicy" />
>  "serviceTicketExpirationPolicy" />
>
> 
>  "authenticationPolicyFactory" />
>
>class="org.jasig.inspektr.audit.support.Slf4jLoggingAuditTra
> ilManager"
>   p:entrySeparator="${cas.audit.singleline.separator:|}"
>   p:useSingleLine="${cas.audit.singleline:false}"/>
>
> 
>
> 
> 
> 
> 
>
> 
>  "authenticationTransactionManager" />
>  "principalElectionStrategy" />
> 
>
>class="org.jasig.cas.authentication.LdapAuthenticationHandler"
>   c:authenticator-ref="authenticator">
> 
> 
>  "uvicEduPersonSpridenID" />
>  "uvicEduPersonNetLinkContactUpdateTimestamp" />
> 
> 
> 
>
>  ldapUrl="${ldap.url}"
> baseDn="${ldap.baseDn.people}"
> userFilter="${ldap.authn.searc
> hFilter}"
> bindDn="${ldap.managerDn}"
> bindCredential="${ldap.manager
> Password}"
> connectTimeout="${ldap.connect
> Timeout}"
> useStartTLS="${ldap.useStartTLS}"
> blockWaitTime="${ldap.pool.blo
> ckWaitTime}"
> maxPoolSize="${ldap.pool.maxSize}"
> allowMultipleDns="${ldap.allow
> MultipleDns:false}"
> usePasswordPolicy="${ldap.useP
> policy:false}"
> minPoolSize="${ldap.pool.minSize}"
> validateOnCheckOut="${ldap.poo
> l.validateOnCheckout}"
> validatePeriodically="${ldap.p
> ool.validatePeriodically}"
> validatePeriod="${ldap.pool.va
> lidatePeriod}"
> idleTime="${ldap.pool.idleTime}"
> prunePeriod="${ldap.pool.prune
> Period}"
> failFastInitialize="true"
> subtreeSearch="${ldap.subtree.
> search:true}"
> useSSL="${ldap.use.ssl:false}"
> />
>
> 
>
> CAS 4.2.7 log
> 2017-02-17 17:20:03,886 DEBUG [ org.jasi.cas.auth.
> LdapAuthenticationHandler] -  AuthenticationResponse@434563655::authenticationResultCode=AUTHENTICATI
> ON_HAND
> LER_SUCCESS, resolvedDn=uid=rbon,ou=People,dc=uvic,dc=ca, 

Re: [cas-user] Re: How to Force logout ?

2017-02-18 Thread Thiago Fernandes do Nascimento
look if help

recuparContextoExterno().redirect("https://localhost:8443/cas/logout?service=https://localhost:8543/Exemplo-web;);


2017-02-17 14:55 GMT-02:00 mdottavi :

> Any update? Is any one have a similar requirement ?
> Thanx
>
> Il giorno venerdì 3 febbraio 2017 17:10:34 UTC+1, mdottavi ha scritto:
>>
>> I'm looking for a way to invalidate a current user session.
>> Use case is the Admin that want to kill a user session.
>> (Looking for a way CAS invoke the Single Logout BACK CHANNEL URL on all
>> registered ST)
>>
>> Thanx.
>>
> --
> - 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+unsubscr...@apereo.org.
> To view this discussion on the web visit https://groups.google.com/a/
> apereo.org/d/msgid/cas-user/41b3230e-9ed2-4450-b920-
> f1a7213a1af5%40apereo.org
> 
> .
>



-- 
Thiago Fernandes do Nascimento

"Oferece o perdão e recebe a paz"
João Paulo II

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CABaf9Z9HY8L9dvGGeh26M4tE0Emeu2MCXTcdn89vor3jEPE9jw%40mail.gmail.com.


Re: [cas-user] deployerConfigContext.xml question

2017-02-18 Thread John Wynstra
OK.  I can see from the URL that I must have been looking at documentation
for version 4.2 and not 5.0.  So that is my mistake.

https://apereo.github.io/cas/4.2.x/installation/LDAP-Authentication.html

On Fri, Feb 17, 2017 at 4:07 PM, Misagh Moayyed  wrote:

> Which documentation?
>
> --
> Misagh
>
> From: John Wynstra  
> Reply: cas-user@apereo.org  
> Date: February 18, 2017 at 12:34:08 AM
> To: cas-user@apereo.org  
> Subject:  [cas-user] deployerConfigContext.xml question
>
> Working with CAS-Maven-overlay 5.0.2
>
> When documentation tells me to add sections to deployerConfigContext.xml
> am I supposed to do that within target directory structure OR am I supposed
> to create a deployerConfigContext.xml in the etc/cas/config directory and
> make my changes there?
> --
> - 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+unsubscr...@apereo.org.
> To view this discussion on the web visit https://groups.google.com/a/
> apereo.org/d/msgid/cas-user/CADTFBKoNaa_GkGe1fcxK4%3Dmf4-
> fS8hrEcnjZd7fAC%3D-5FZA_Lw%40mail.gmail.com
> 
> .
>
> --
> - 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+unsubscr...@apereo.org.
> To view this discussion on the web visit https://groups.google.com/a/
> apereo.org/d/msgid/cas-user/etPan.58a77426.3af0d924.b37%40unicon.net
> 
> .
>

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CADTFBKo0rL9wo5Vrc-Cx1Y6Vq9jccxXQ9ud6TK6jbqmHF5vvbg%40mail.gmail.com.