Click here to Skip to main content
15,902,939 members

Comments by Selvakumar Gurusamy (Top 3 by date)

Selvakumar Gurusamy 14-Oct-13 3:26am View    
I tried all this. But it does not solve the problem.
Selvakumar Gurusamy 7-Aug-13 0:02am View    
I did this also. its also take same time like reading a property from the invalid directory entry.
Selvakumar Gurusamy 6-Aug-13 8:24am View    
the code is like this

public List<string> GetGuidLists(List<string> ldapPaths)
{
List<string> guids = new List<string>();

foreach (string path in ldapPaths)
{
if (!string.IsNullOrEmpty(path))
{
try
{
DirectoryEntry entry = new DirectoryEntry(path);
guids.Add(new Guid(entry.Properties["objectGuid"][0] as byte[]).ToString());
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
}

return guids;
}