<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hello Everyone,</p>
<p><br>
</p>
<p>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:</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p></p>
<div><resolver:AttributeDefinition xsi:type="ad:Script" id="cn"></div>
<div>        <resolver:Dependency ref="oud" /></div>
<div>        <resolver:AttributeEncoder xsi:type="enc:SAML1String" name="urn:mace:dir:attribute-def:cn" /></div>
<div>        <resolver:AttributeEncoder xsi:type="enc:SAML2String" name="urn:oid:2.5.4.3" friendlyName="cn" /></div>
<div><span style="white-space:pre"></span><ad:Script></div>
<div>        <![CDATA[</div>
<div>                var values = cn.getValues();</div>
<div></div>
<div><span style="white-space:pre"></span>cn.addValue(values.toLowerCase());</div>
<div>        ]]></div>
<div>        </ad:Script></div>
<div></resolver:AttributeDefinition></div>
<br>
<p></p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>But it doesn't work due to what I'm guessing is getValues not producing a string.</p>
<p><br>
</p>
<p>Thanks!</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>--</div>
<div>Brandon McKean</div>
<div>IT / Systems</div>
<div>Linux Administrator</div>
<div>(540)568-4235</div>
<br>
<p></p>
</div>
</div>
</div>
</body>
</html>