reading objectGuid into System.Guid
I'm sure there is a simple answer, but I'm new to LDAP and the csharp LDAP library.
ldapEntry.getAttribute("objectGuid").ByteValues returns a sbyte[], but the System.Guid constructor takes a byte[].
What is the simplest way to construct a System.Guid from the sbyte[] provided by the "objectGuid" attribute? Or is there an easier way to read the attribute into a Guid?
Thanks in advance.
|