E
Ed_P.
Hello,
I am trying to retrieve the list of users that belong to a security group Active Directory. But I
am unable to retrieve the users. Below you will find the code that I am using, please note that the
LDAP string is pointing to a Security Group that has about 6 users in it.
DirectoryEntry entry = new
DirectoryEntry("LDAP://win2k3domain.net/CN=ExternalUsers,OU=KB_Users,DC=win2k3domain,DC=net");
foreach(DirectoryEntry child in entry.Children)
{
Console.WriteLine("Name: {0}", child.Name); //not retrieving anything
}
Am I missing something, or is there a better way to search for and retrieve users from a group?
I am trying to retrieve the list of users that belong to a security group Active Directory. But I
am unable to retrieve the users. Below you will find the code that I am using, please note that the
LDAP string is pointing to a Security Group that has about 6 users in it.
DirectoryEntry entry = new
DirectoryEntry("LDAP://win2k3domain.net/CN=ExternalUsers,OU=KB_Users,DC=win2k3domain,DC=net");
foreach(DirectoryEntry child in entry.Children)
{
Console.WriteLine("Name: {0}", child.Name); //not retrieving anything
}
Am I missing something, or is there a better way to search for and retrieve users from a group?