Other ways to transform binary LDAP balues?
Daniel Fisher
dfisher at vt.edu
Thu Dec 8 13:36:51 EST 2016
On Thu, Dec 8, 2016 at 11:29 AM, Matthew X. Economou <xenophon at irtnog.org>
wrote:
> Dear all,
>
> I would like to use the objectGUID, a 128-bit binary value that comes
> from an LDAP server, as either the ePUID or ePPN, based on the
> configuration described here:
>
> https://msdn.microsoft.com/en-us/library/azure/jj205463.aspx
As Scott said, the quickest solution would be to go the scripting route.
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.
In your script you can do something like this:
byte[] decoded = org.ldaptive.LdapUtils.base64Decode(attributeValue);
String guid = org.ldaptive.ad.GlobalIdentifier.toString(decoded);
--Daniel Fisher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20161208/997bca72/attachment.html>
More information about the users
mailing list