Scripted Attributes
Mr. Christopher Bland
chris at fdu.edu
Tue Sep 8 20:59:26 EDT 2015
Hi All,
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
<ad:Script><![CDATA[
importPackage(Packages.edu.internet2.middleware.shibboleth.common.attribute.provider);
if(typeof sAMAccountName != "undefined") {
uid = new BasicAttribute("uid");
uid.getValues().add(sAMAccountName.getValues().get(0));
} else {
This is where I want to say something like get nativevalue for the IDP attribute but I am using v2.4
uid.getValues();
}
]]></ad:Script>
Thank you in advance,
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20150909/23352a6d/attachment.html>
More information about the users
mailing list