Making Attribute Lowercase

McKean, Brandon Scott - mckeanbs mckeanbs at jmu.edu
Tue Sep 26 13:58:23 EDT 2017


Hello Everyone,


Can someone recommend a good way to make an attribute lowercase within a scripted attribute definition? I thought this would be as simple as, for example:




<resolver:AttributeDefinition xsi:type="ad:Script" id="cn">
        <resolver:Dependency ref="oud" />
        <resolver:AttributeEncoder xsi:type="enc:SAML1String" name="urn:mace:dir:attribute-def:cn" />
        <resolver:AttributeEncoder xsi:type="enc:SAML2String" name="urn:oid:2.5.4.3" friendlyName="cn" />
<ad:Script>
        <![CDATA[
                var values = cn.getValues();
cn.addValue(values.toLowerCase());
        ]]>
        </ad:Script>
</resolver:AttributeDefinition>








But it doesn't work due to what I'm guessing is getValues not producing a string.


Thanks!


--
Brandon McKean
IT / Systems
Linux Administrator
(540)568-4235

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20170926/f6b4487b/attachment.html>


More information about the users mailing list