Guest User

Untitled

a guest
Sep 3rd, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Can you give me examples of an LDAP connection string for Active Directory?
  2. LDAP://[ServerName]/dc=contoso,dc=com
  3.  
  4. LDAP://[ServerName]/dc=test,/dc=contoso,dc=com
  5.  
  6. DirectoryEntry de = new DirectoryEntry("LDAP://[ServerName]/dc=test,/dc=contoso,dc=com");
  7. de.Username = "username";
  8. de.Password = "password";
Add Comment
Please, Sign In to add comment