character replacement in SAML attribute values?

IAM David Bantz dabantz at alaska.edu
Fri Aug 25 20:18:21 EDT 2017


I'm having to switch my data source from Oracle Directory Server to Active
Directory and adapt to different conventions in how data are represented.
Some data represented by simple named attributes will now have to be
deciphered from group names, and the group names replace spaces with
underscores. I can extract the name (with underscores) from the memberOf
values of appropriately chosen group names, for example for the campus
affiliations:

> <ValueMap
>      <ReturnValue> $1</ReturnValue>
>      <SourceValue ignoreCase="true">^CN=(.*?),OU=Campus,(.*)</SourceValue>
> </ValueMap>

But how might I easily replace underscores to recover the canonical
institutional names with spaces?

David Bantz
U Alaska
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20170825/89a3691e/attachment.html>


More information about the users mailing list