Hi, I would like in c# get a user or a group using objectSID ref. sample: ****** DirectoryEntry de = Utility.GetDirectoryObject(); DirectorySearcher deSearch = new DirectorySearcher(); deSearch.SearchRoot = de; deSearch.Filter = "(&(objectClass=group)(objectSid=" + SID + "))"; SearchResult result = deSearch.FindOne(); My problem : ********** I have a SID value in byte[] type. What sort of string value I have to put in my filter and how to obtain it? Thanks a lot SD
You multiposted. Answered in the active.directory.interfaces group. Joe K. "SD" wrote in message news:OksLyVPeGHA.3632@TK2MSFTNGP02.phx.gbl... > Hi, > > I would like in c# get a user or a group using objectSID ref. > > sample: > ****** > DirectoryEntry de = Utility.GetDirectoryObject(); > > DirectorySearcher deSearch = new DirectorySearcher(); > > deSearch.SearchRoot = de; > > deSearch.Filter = "(&(objectClass=group)(objectSid=" + SID + "))"; > > SearchResult result = deSearch.FindOne(); > > My problem : > ********** > I have a SID value in byte[] type. What sort of string value I have to put > in my filter and how to obtain it? > > Thanks a lot > > SD > > > > > >