ASP.NET 1.0 and 1.1 ProfessionalFor advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
You will need to import the System.DirectoryServices namespace and do something like this:
Dim oRoot As DirectoryEntry = New DirectoryEntry([Your LDAP info])
Dim oSearcher As DirectorySearcher = New DirectorySearcher(oRoot)
Dim oResults As SearchResultCollection
Dim strEmail as string
For Each oResult In oResults
strEmail = oResult.GetDirectoryEntry().Properties("mail").Val ue
'Do something
Next
There may be a few quarks but this is the summary of it all.
"The one language all programmers understand is profanity."