Active Directory
Here is a sample of how to get all the information about a person stored in the active directory
1 | Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click |
Common Errors
Active Directory Error - System.Runtime.InteropServices.COMException (0x80072020):
An operations error occurred at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) at …
I see this happen on a web site.
When I have the site configured as NT Authentication - I get the error
When I have the site configured as basic authentication
- the error goes away. If you really want to run the site with NT Authentication …