note that the attributeRepository is part of a services JSON file. not the
cas.properties file. Ours looks as as follows because of some weirdness
with attribute names previously.

{
  "@class" : "org.apereo.cas.services.RegexRegisteredService",
  "serviceId" : "https://.*";,
  "name" : "HTTPS",
  "id" : 1,
  "description" : "HTTPS protocol wildcard service.",
  "evaluationOrder" : 10000,
  "attributeReleasePolicy" : {
    "@class" : "org.apereo.cas.services.ReturnMappedAttributeReleasePolicy",
    "allowedAttributes" : {
        "@class" : "java.util.TreeMap",
        "UDC_IDENTIFIER" : "UDC_IDENTIFIER",
        }
  }
}

*Daniel Widrick*

Lead Programmer Analyst/Systems Administrator

SUNY Polytechnic Institute


100 Seymour Road

Utica, NY 13502

Help Desk: 315.792.7440


On Tue, Nov 13, 2018 at 10:08 AM Zach Tackett <[email protected]> wrote:

> I tried what you mentioned and everytime I rebuild the CAS server it
> breaks because it doesn't like the .attributeRepository part of the
> attribute
>
> On Tuesday, November 13, 2018 at 9:54:57 AM UTC-5, Mac Reid wrote:
>>
>> Assuming a working ldap attribute repository, we added the following line
>> to our cas.properties:
>>
>> cas.authn.attributeRepository.ldap[0].attributes.udcid=UDC_IDENTIFIER
>>
>> In the above line, the udcid is the ldap attribute and the UDC_IDENTIFIER
>> is the CAS name for the attribute.
>> In our Banner service file, we have the following:
>>
>>   attributeReleasePolicy: {
>>     @class: org.apereo.cas.services.ReturnAllowedAttributeReleasePolicy
>>     allowedAttributes: ["java.util.ArrayList", ["UDC_IDENTIFIER"]]
>>   }
>>
>> For reference:
>> https://apereo.github.io/cas/5.1.x/installation/Configuration-Properties.html#ldap
>>
>> - Mac
>>
> --
> - 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/37137678-7743-4ebd-8884-5ef5578d3de7%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/37137678-7743-4ebd-8884-5ef5578d3de7%40apereo.org?utm_medium=email&utm_source=footer>
> .
>

-- 
- 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAN_fqOAcVgNtEjCEhFr6e8L%3D-HMw7y3%3Dm05zcUb8Q3phD4S4Yg%40mail.gmail.com.

Reply via email to