You probably want something like this in your cas.properties:
cas.authn.ldap[0].principalAttributeList=sAMAccountName,givenName,sn,mail,memberOf,distinguishedName Of course put in the attributes that you want to release. From: [email protected] [mailto:[email protected]] On Behalf Of Jérémie Pilette Sent: Tuesday, September 19, 2017 7:24 PM To: CAS Community Subject: Re: [cas-user] Re: 5.1.x - How to configure CAS to transfert some values from different attribut of LDAP Thank you for your responses. I have used json configuration "attributeReleasePolicy" but no attributes are sent to the service. Is there a parameter to add in the cas.properties? In the "Attribute Release Policies", it is written that it is about principal attributes. Where can we defined the principal Attributes ? I have to forget something .... but what ? Thank you, Jérémie Le vendredi 15 septembre 2017 17:51:05 UTC+2, rbon a écrit : Jérémie You can specify the attributes to be released on a per service basis. Add something like this to you service definition: "attributeReleasePolicy" : { "@class" : "org.apereo.cas.services.ReturnMappedAttributeReleasePolicy" , "allowedAttributes" : { "@class" : "java.util.TreeMap", "uvicEduPersonNetLinkContactUpdateTimestamp" : "contactUpdateTimestamp", "uvicEduPersonSpridenID" : "UDC_IDENTIFIER" } } This way you can set the identifier name to be service specific and leave the ldap identifiers in their raw format. See https://apereo.github.io/cas/5.1.x/integration/Attribute-Release-Policies.html Ray On Fri, 2017-09-15 at 06:42 -0700, Jérémie Pilette wrote: Is there somebody who can help me please ? Thank you, Jérémie Le jeudi 7 septembre 2017 15:50:52 UTC+2, Jérémie Pilette a écrit : Hello, I would like to configure my cas.properties in order to have the possibility to transfert some values from LDAP to a service (Ypareo for example) Do you know how to do that ? Must I use these parameters : # cas.authn.ldap[0].principalAttributeId=uid # cas.authn.ldap[0].principalAttributePassword=password # cas.authn.ldap[0].principalAttributeList=sn,cn:commonName,givenName,eduPersonTargettedId:SOME_IDENTIFIER or these parameters : # cas.authn.attributeRepository.ldap[0].attributes.uid=uid # cas.authn.attributeRepository.ldap[0].attributes.displayName=displayName # cas.authn.attributeRepository.ldap[0].attributes.cn=commonName # cas.authn.attributeRepository.ldap[0].attributes.affiliation=groupMembership Thanks a lot, Jérémie -- Ray Bon Programmer analyst Development Services, University Systems 2507218831 | CLE 019 | [email protected] <javascript:> -- - 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/5e57990d-248a-4df8-891f-05906ad12217%40apereo.org <https://groups.google.com/a/apereo.org/d/msgid/cas-user/5e57990d-248a-4df8-891f-05906ad12217%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/00ba01d3313a%24a4c53c50%24ee4fb4f0%24%40gmail.com.
