Hi Baron,
You can definitely get what you want without changing LDAP. Referring to
the Spring bean definitions, you could create a second personAttributeDao
for your attributeRepository that adds in resultAttr2. Or, to take it to
the next level, if your requirements were more complicated and you wanted
to do additional manipulation of the incoming attribute data, you could
extend org.jasig.services.persondir.support.ldap.LdapPersonAttributeDao to
make it behave just like you want.
Dan
Dan Ellentuck
Columbia University I.T.
On Tue, May 10, 2016 at 3:37 PM, Baron Fujimoto <[email protected]> wrote:
> On Fri, May 06, 2016 at 04:51:33PM -1000, Baron Fujimoto wrote:
> >We're using LdapPersonAttributeDao in CAS 3.4.11's
> deployerConfigContext.xml
> >to return attributes for /samlValidate. Is there a way to configure it to
> >use the same source attribute to return more than one result attribute?
> That
> >is, we'd like to query "srcAttr" from LDAP and return its value as both
> >"resultAttr1" and "resultAttr2". Only one-to-one mappings are allowed by
> >
> ><property name="resultAttributeMapping">
> > <map>
> > <entry key="srcAttr" value="resultAttr1"/>
> > <entry key="srcAttr" value="resultAttr2"/>
> > </map>
> ></property>
> >
> >So that type of shenanigans doesn't work. Is there another way to
> >achieve this?
>
> Sorry to follow up my own post, but can anyone tell me if this is
> achievable, or do I need to pursue some other non-CAS option? For example,
> replicating the source attribute in LDAP seems like an unpalatable kludge.
>
> --
> Baron Fujimoto <[email protected]> :: UH Information Technology Services
> minutas cantorum, minutas balorum, minutas carboratum desendus pantorum
>
> --
> 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 post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/
> .
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/20160510193746.GI766%40praenomen.mgt.hawaii.edu
> .
> For more options, visit https://groups.google.com/a/apereo.org/d/optout.
>
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAFqYg5JDWo0C0UDLDHc1g%2BVfv_oT-Df%2B8aqkqSmXg1%2BELJbCjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.