using System; using System.DirectoryServices; public class main { public static void Main() { string password = "nvEfEK16^1aM4$e7AclUf8x$tRWxPWO1%lmz"; entry = new DirectoryEntry("LDAP://support.htb", "support\\ldap", password); entry.AuthenticationType = AuthenticationTypes.Secure; ds = new DirectorySearcher(entry); } }