Creating a multivalued attribute from RegexSplit type of AttributeDefinition

Chad La Joie lajoie at itumi.biz
Thu Sep 1 21:13:53 BST 2011


The attribute definition works as documented.  So if you want something additional then yes, you'll need to write it yourself.

--
Chad La Joie
www.itumi.biz
trusted identities, delivered

On Sep 1, 2011, at 3:59 PM, Martin B. Smith wrote:

> Hello all,
> 
> I'm about to define some new attributes in our IdP (2.1.x, with 2.3.x in the near term), and I'm hoping to take an existing String I have, and split it into a multivalued attribute. The string looks like: "foo at ufl.edu$bar at ufl.edu$....$"
> 
> I went and browsed the wiki, and figured I'd try to use the RegexSplit resolver as documented at ResolverRegexSplitAttributeDefinition.
> 
> But, now that I'm doing it, I'm noticing the documentation says that it will only produce the _first_ matching group. Can someone confirm with me that this resolver in fact isn't going to be useful for my use case? It seems that this resolver doesn't actually split anything so much as match a single value and extract it.
> 
> Would you agree I'm probably going to have to write a script using the Script attribute resolver for this one? The irony here for me is I'm going to use String#split() in Java for this (vs. the split-ing resolver provided).
> 
> Thanks in advance,
> -- 
> Martin B. Smith
> smithmb at ufl.edu - (352) 273-1374
> CNS/Open Systems Group
> University of Florida
> 
> --
> To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net



More information about the users mailing list