DirectoryEntry dir = new DirectoryEntry("LDAP://ou=outest,ou=ouGB,DC=GB,DC=,DC=local"); DirectorySearcher search = new DirectorySearcher(dir); search.Filter = "(&(objectClass=user))"; // (mobile=+44*))"; search.SearchScope = SearchScope.Subtree; search.PropertiesToLoad.Add("cn"); search.PropertiesToLoad.Add("mobile"); search.PropertiesToLoad.Add("mail"); SearchResultCollection searchresult = search.FindAll(); if (searchresult != null) ......
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)