I'm trying to access AD data via ldap with the connection like:
LDAP://dc1.corp:port/OU=Users,DC=domain,DC=com
Then using the directorySearcher.FindOne().GetDirectoryEntry();
This 100% works on my machine, but when I do this on the server it throws DirectoryServicesCOMException (0x80072030) There is no such object on the server.
I found the similar question on so, but it doesn't help. Currently I'm looking for the way to at least understand why there is a difference for ldap access on my local PC and on the server.