Hi,
How to list all users in
ListBox
include
cn,
mobile,
mail?
private void Form1_Load(object sender, EventArgs e)
{
DirectoryEntry dir = new DirectoryEntry("LDAP://ou=o,DC=xyz,DC=de");
DirectorySearcher search = new DirectorySearcher(dir);
search.Filter = "(&(objectClass=user))";
search.SearchScope = SearchScope.Subtree;
SearchResultCollection searchresult = search.FindAll();
if (searchresult != null)
{
???
}
Regards