AttributeDefinition: Regex not woking
Marcel Kleiber
marcel.kleiber at h-net.ch
Fri May 27 08:55:46 EDT 2016
Hi Stephen
Thanks, this did the trick and I'm convinced now shib is using
mapper.matches()!
Regards
Marcel
On 27.05.2016 14:22, Losen, Stephen C. (scl) wrote:
> Hi Marcel,
>
> Try using this for your regex: "uid=([^,]*),.*"
>
> I think the regex must match the entire input string, at least that has been my experience.
>
> Stephen C. Losen
> ITS - Systems and Storage
> University of Virginia
> scl at virginia.edu 434-924-0640
>
> -----Original Message-----
> From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Marcel Kleiber
> Sent: Friday, May 27, 2016 8:15 AM
> To: Shib Users
> Subject: AttributeDefinition: Regex not woking
>
> Hi
>
> We have a Regex not working in attrDef type ad:RegexSplit and as well in
> type ad:Mapped
>
> the input is "uid=USZ:10001,ou=HcProfessional,o=HPDICW,dc=HPD"
> the output shold be "USZ:10001"
> the regex is "uid=([^,]*),"
>
> In pure java this works by means of mapper.find(), it does not work by
> means of mapper.matches().
> I've read somewhere Shib uses mapper.matches() ?
>
> Help is appreachated...
> Marcel
More information about the users
mailing list