Advertisement
Guest User

Untitled

a guest
Apr 19th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. string server = "dcxd01.dev.inwkx.net";
  2. string userName = "svc.dev.adwriter";
  3. string password = "doIESISOlTB14zOcBesh";
  4. //string domain = "CN=Schema,CN=Configuration,DC=inwkx,DC=net";
  5.  
  6. string path = "LDAP://" + server;
  7. DirectoryEntry entry = new DirectoryEntry(path,userName,password);
  8. entry.AuthenticationType = AuthenticationTypes.Secure;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement