[python-ldap] AD objectGUID conversion to string

Robert Meany robert.meany at gmail.com
Wed Sep 24 05:17:03 CEST 2014


Woops, I replied earlier, but I didnt reply-all... See following pasted
code I use for converting what's returned from AD via the python-ldap query
to readable format:

http://pastebin.com/1FQfFUhc


On Tue, Sep 23, 2014 at 10:37 PM, Joseph L. Casale <
jcasale at activenetwerx.com> wrote:

> > > Data in AD is typically utf-16 encoded.
> >
> > No! The LDAP interface of MS AD is LDAPv3 compliant and therefore uses
> UTF-8
> > for LDAP syntax DirectoryString.
>
> Well, to be specific I referred to data _in_ AD, not data _on the wire_.
> To be honest
> it wasn't even relevant in this case but more for cases like setting
> unicodePwd.
>
> But we digress...
>
> jlc
> _______________________________________________
> python-ldap mailing list
> python-ldap at python.org
> https://mail.python.org/mailman/listinfo/python-ldap
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20140923/3f5be344/attachment-0001.html>


More information about the python-ldap mailing list