Welcome to SofiaDev.Org's Blogs Sign in | Join | Help

20 Април 2006 - Posts

Accessing Active Directory without specifying LDAP path

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