Re: [cas-user] CAS 6.2.1 attribute release not working with PersonDirectory

2020-12-04 Thread Andy Ng
Hi all, I encountered the same issue, and want to chime in with some additional info: I found that starting from CAS 6.2.x by default attributes from JDBC / LDAP / other PersonDirecotry are not by default released. See this line here: https://github.com/apereo/cas/blob/v6.2.6/core/cas-server-

Re: [cas-user] CAS 6.2.1 attribute release not working with PersonDirectory

2020-11-20 Thread P N
I am adding the following from the cas.log file , maybe someone can help me understand what is missing in the default attribute release policy and why is Person Directory not triggered: 2020-11-18 16:59:43,750 DEBUG [org.apereo.cas.config.CasPersonDirectoryConfiguration] - 2020-11-18 16:59:43,

Re: [cas-user] CAS 6.2.1 attribute release not working with PersonDirectory

2020-11-18 Thread P N
Hi Ray, I found a way to release attributes by adding the following to the JSON service definition: "attributeReleasePolicy" : { "@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy", "principalAttributesRepository" : { "@class" : "org.apereo.cas.authentication.principal.DefaultP

Re: [cas-user] CAS 6.2.1 attribute release not working with PersonDirectory

2020-11-17 Thread Ray Bon
Paul, There are per service settings that can be applied and a default bundle that can be set, https://apereo.github.io/cas/6.2.x/integration/Attribute-Release-Policies.html You can set some attributes to be searched on authentication and others can be extracted afterwards, https://apereo.git

Re: [cas-user] CAS 6.2.1 attribute release not working with PersonDirectory

2020-11-17 Thread P N
Hi Ray, I changed the attribute names and still same result. As suggested I set logging to debug and configuration and didn't find any message about 'unbound attribute'. I believe there is an issue related to the attribute release policies, based on the following log message: 2020-11-17 09:54:

Re: [cas-user] CAS 6.2.1 attribute release not working with PersonDirectory

2020-11-16 Thread Ray Bon
Paul, Unfortunately the docs have not been updated. The reference is here on line 186, https://github.com/apereo/cas/blob/6.2.x/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/core/authentication/AuthenticationProperties.java Set your logging to debug

Re: [cas-user] CAS 6.2.1 attribute release not working with PersonDirectory

2020-11-16 Thread P N
Hi Ray, I am actually using the notation prescribed in CAS 6.2.x documentation - see https://apereo.github.io/cas/6.2.x/configuration/Configuration-Properties.html#jdbc-1 : # cas.authn.attribute-repository.jdbc[0].attributes.uid=uid # cas.authn.attribute-repository.jdbc[0].attributes.displ

Re: [cas-user] CAS 6.2.1 attribute release not working with PersonDirectory

2020-11-16 Thread Ray Bon
Paul, You will have to check all your attribute names, they often change between versions. cas.authn.attribute-repository.jdbc is now cas.authn.attributeRepository.jdbc Ray On Mon, 2020-11-16 at 13:20 -0800, P N wrote: Notice: This message was sent from outside the University of Victoria email

[cas-user] CAS 6.2.1 attribute release not working with PersonDirectory

2020-11-16 Thread P N
Hi, I am in the process to migrate from CAS 5.3.15 to CAS 2.1 and in CAS 6 I am using the same configuration properties as in CAS 5 for the principal attribute release from an external JDBC repository using default Person Directory to all services by default: cas.authn.attribute-repository.de