using Transform AttributeResolver to get first value of multi-value attribute

Wesley Schaft wesley.schaft at gmail.com
Tue Mar 22 09:56:25 EDT 2016


Ok, then I'm confused by this example:

<AttributeResolver type="Transform" source="displayName">
    <Regex match="^(.+) (.+)$" dest="givenName">$1</Regex>
    <Regex match="^(.+) (.+)$" dest="sn">$2</Regex>
    <Regex match="^(.+) (.+)$">$2, $1</Regex>
</AttributeResolver>

It's almost the same thing I'm trying to achieve; splitting up displayName
by a regex and return the values givenName and sn.



On Tue, Mar 22, 2016 at 1:30 PM, Cantor, Scott <cantor.2 at osu.edu> wrote:

> > I would like to strip the multi-value mail attribute
> (urn:mace:dir:attribute-
> > def:mail) we're receiving from an IDP and only use the first value found.
>
> Can't be done.
>
> > What am I doing wrong here?
>
> Attempting the impossible, and I think fundamentally mistaking the value
> in the header for the value in the attribute. The separated string is the
> result of combining all the values at the end, that doesn't exist to
> operate on before export to the application.
>
> -- Scott
>
> --
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20160322/044f534c/attachment.html>


More information about the users mailing list