<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Dec 8, 2016 at 11:29 AM, Matthew X. Economou <span dir="ltr"><<a href="mailto:xenophon@irtnog.org" target="_blank">xenophon@irtnog.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear all,<br>
<br>
I would like to use the objectGUID, a 128-bit binary value that comes<br>
from an LDAP server, as either the ePUID or ePPN, based on the<br>
configuration described here:<br>
<br>
<a href="https://msdn.microsoft.com/en-us/library/azure/jj205463.aspx" rel="noreferrer" target="_blank">https://msdn.microsoft.com/en-<wbr>us/library/azure/jj205463.aspx</a></blockquote><div><br></div><div>As Scott said, the quickest solution would be to go the scripting route.</div><div>It's possible to configure the LDAP DataConnector to give you this attribute in the form you want, but that will require using a spring resources based configuration.</div><div><br></div><div>In your script you can do something like this:</div><div><br></div><div>byte[] decoded = org.ldaptive.LdapUtils.base64Decode(attributeValue);</div><div>String guid = org.ldaptive.ad.GlobalIdentifier.toString(decoded);</div><div><br></div><div>--Daniel Fisher<br></div><div><br></div></div></div></div>