Using objectGUID in the resolver

Klingenstein, Nate nklingenstein at calstate.edu
Tue Feb 28 18:40:46 EST 2017


We believe this was ultimately connected to ECMAScript's treatment of arrays being totally different than Java's.  This is ugly but it works.  I don't know which part of this is extraneous.


	<AttributeDefinition id="hexGUID" xsi:type="ScriptedAttribute" dependencyOnly="true">
		<Dependency ref="objectGUID"/>
		<Dependency ref="ActiveDirectory" />
		<Script>
			<![CDATA[
				ByteArray = Java.type("java.lang.Byte[]");
				byteArray = new ByteArray(32);
				guid = new String;
				byteArray = org.ldaptive.LdapUtils.base64Decode(objectGUID.getValues().get(0));
				guid = org.ldaptive.ad.GlobalIdentifier.toString(byteArray);
				hexGUID.addValue(guid);
			]]>
		</Script>
	</AttributeDefinition>


More information about the users mailing list