UpperCAse/LoweCase

Rob Gorrell rwgorrel at uncg.edu
Wed Jul 22 13:35:56 EDT 2015


we do it via the scripted attribute definition like Scott mentioned...

<!--  (added code to force uppercase of eduPersonPrincipalName) -->
   <resolver:AttributeDefinition id="scriptUserName" xsi:type="Script"
      xmlns="urn:mace:shibboleth:2.0:resolver:ad">
      <resolver:Dependency ref="ldap_username" />
      <Script>
        <![CDATA[

importPackage(Packages.edu.internet2.middleware.shibboleth.common.attribute.provider);
             scriptUserName = new BasicAttribute("scriptUserName");
             for( i=0;ldap_username != null && i <
ldap_username.getValues().size();i++)
              {
              scriptUserName.getValues().add(
ldap_username.getValues().get(i).toUpperCase() );
              }

        ]]>
      </Script>
   </resolver:AttributeDefinition>


On Wed, Jul 22, 2015 at 11:39 AM, Cantor, Scott <cantor.2 at osu.edu> wrote:

> On 7/22/15, 10:58 AM, "users on behalf of Argenis Lopez" <
> users-bounces at shibboleth.net on behalf of alopez at fcci-group.com> wrote:
>
>
>
> >Is there a way to convert (uppercase/lowercase) an attribute before
> releasing it to the SP?
>
> Assuming you mean the IdP, I don't believe it's possible other than via a
> Script attribute definition.
>
> -- Scott
>
> --
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>



-- 
Robert W. Gorrell
Systems Architect, Identity and Access Management
University of NC at Greensboro
336-334-5954
PGP Key ID B36DB0CA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20150722/4b8256c3/attachment.html>


More information about the users mailing list