LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 31-Aug-2009, 04:29 PM
Junior Member
 
Join Date: Aug 2009
Posts: 5
danielnapierski 0 reputation points
Default 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.
Reply With Quote
 

Tags
byte, csharp, guid, ldap, sbyte

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 07:35 PM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2