[python-ldap] AD objectGUID conversion to string
Kernel Panic
kpnemesis at gmail.com
Tue Sep 23 17:02:43 CEST 2014
Hello, thanks for the replies, here is an example of the output of the
objectGUID query: '\xd3\x18W|T\xc4!A\x90\xe3\xa7\xf7\xe8\xe1\xd9\xf1'
Can anyone confirm what this format is?
Thnaks.
On 19 September 2014 20:27, Michael Ströder <michael at stroeder.com> wrote:
> Kernel Panic wrote:
> > Hello everyone, when I extract the objectGUID value from an AD account I
> > believe it is extracted in binary format, can anyone show me a way to
> > convert that to a string similar to what you would get from Microsoft's
> > csvde.exe tool?
>
> In web2ldap I have code similar to this:
>
> import uuid
> u = uuid.UUID(bytes=ldap_entry['objectGUID'][0])
>
> Not sure whether csvde.exe really displays objectGUID value as UUID string
> representation though.
>
> Ciao, Michael.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20140923/7fcc6daa/attachment.html>
More information about the python-ldap
mailing list