I have a bit of code where I log into an ldap server and pull up information on an individual
string ldap_org = "cn=" + uname + ",ou=users,o=intranet";DirectoryEntry entry = new DirectoryEntry("LDAP://ldapnds.dns.com/ou=users,o=intranet", ldap_org, pw, AuthenticationTypes.ServerBind);
DirectorySearcher mySearcher = ...
Go to the complete details ...