blob: 44da8d171660287f965ad31e877b74b45e9b7608 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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);
}
}
|