Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. string myServerName = "111.22.333.444:389";
  2.  
  3. string myUserName = "MyLogin,ou=Systems,ou=LOCATION,o=Internal,dc=MYCOMPANY,dc=COM";
  4.  
  5. string myPassword = "MyPassword";
  6.  
  7. string myDomain = "ou=Systems,ou=LOCATION,o=Internal,dc=MYCOMPANY,dc=COM";
  8.  
  9. LdapConnection myConnection = new LdapConnection(myServerName);
  10.  
  11. NetworkCredetial myCredential = new NetworkCredential(myUserName, myPassword, myDomain);
  12.  
  13. myConnection.Bind(myCredential);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement