I’m writing up a class that wraps all of the functionality I need for accessing AD in one place.So how do I get the LDAP path to the domain controller? It’s easy – just get it from AD itself. Here’s the code:
using (DirectoryEntry rootDse = (PreAuthenticate