Conecte-se ao Active Directory via LDAP

Quero me conectar ao nosso Active Directory local com C #.

encontreiesta boa documentação.

Mas eu realmente não entendo como se conectar via LDAP.

Alguém de vocês pode explicar como usar os parâmetros solicitados?

Código de amostra:

  static DirectoryEntry createDirectoryEntry()  
  {  
     // create and return new LDAP connection with desired settings  

     DirectoryEntry ldapConnection     = new DirectoryEntry("rizzo.leeds-art.ac.uk");  
     ldapConnection.Path               = "LDAP://OU=staffusers,DC=leeds-art,DC=ac,DC=uk";  
     ldapConnection.AuthenticationType = AuthenticationTypes.Secure;  
     return ldapConnection;  
  }  

Acabei de ter o nome do host e o endereço IP do nosso servidor Active Directory. O queDC=xxx,DC=xx e assim por diante?

questionAnswers(3)

yourAnswerToTheQuestion