<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;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
Hi All,<br>
<br>
I am transitioning from LDAP to Active Directory and have changed a number of attribute names so that they are more representative of common industry schema names.  The problem I am trying to overcome is when the source attribute names don't match.  I have
 come up with the scripted definition below but am unsure how to say use the value of the attribute of the same name if it exists<br>
<br>
<font size="2"><span style="font-size:10pt;">        <ad:Script><![CDATA[<br>
                importPackage(Packages.edu.internet2.middleware.shibboleth.common.attribute.provider);<br>
                if(typeof sAMAccountName != "undefined") {<br>
                        uid = new BasicAttribute("uid");<br>
                        uid.getValues().add(sAMAccountName.getValues().get(0));<br>
                } else {<br>
<span>    </span><span>    </span><span>    </span><span>        </span>This is where I want to say something like get nativevalue for the IDP attribute but I am using v2.4              
<br>
<span>    </span><span>    </span><span>    </span><span>        </span>uid.getValues();<br>
                }<br>
        ]]></ad:Script><br>
<br>
Thank you in advance,<br>
<br>
-Chris<br>
</span></font></div>
</body>
</html>