LDAP Connection

  • Thread starter Thread starter Guest
  • Start date Start date
You could spend a day or two trying to find on Google what you want to do
with LDAP. Do you have a specific action you are trying to do? I use C# but
check out the DirectoryServices API in .net. This is simply to connect and
search for a particluar person:

DirectoryEntry entry = new
DirectoryEntry("LDAP://YOURDOMAIN/OU",AdminUserName,AdminPassword,AuthenticationTypes.Secure);
DirectorySearcher search = new DirectorySearcher(entry);
search.Filter = "(objectCategory=user)(sAMAccountName=UserName)";
foreach (SearchResult result in search.FindAll())
Console.WriteLine(result.DirectoryEntry.Path);
entry.Close();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top