AD QUERYING USING LDAP NOT WORKING FROM REMOTE MACHINE
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
DirectoryEntry searchRoot = new DirectoryEntry DirectorySearcher search = new DirectorySearcher(); ArrayList allUsers = new ArrayList(); DirectorySearcher search = new DirectorySearcher(searchRoot); search.CacheResults = true; search.Filter = "(&(objectClass=user)(objectClass=person))"; search.PropertiesToLoad.Add("samaccountname"); search.PropertiesToLoad.Add("displayname"); SearchResult result; SearchResultCollection resultCol = search.FindAll(); I used the above code to retrive active directory usernames and loginIds .Its working fine from local machine but not working from remote machine. It is giving the erroe"An operations error occurred " If any one has a solution for this please help me Prajin