Hi, I'm trying to use impersonation to access Active Directory. But it just won't work. I get a connection, but it only gives results on a miniscule subset of the whole Active Directory.
If I create the DirectoryEntry object supplying a username and password, then search for John, it returns 73 different johns.
But if I omit the username and password, and use impersonation, it only returns 2 johns.
This is driving me crazy, I've searched all over the web for details on how to get this working, to no avail.
I've got impersonation set up in the WEB.CONFIG file correctly. The Directory Security of the folders on the webserver is set to deny anonymous access. This is as everything I've read recommends.
If I create the DirectoryEntry object supplying a username and password, then search for John, it returns 73 different johns.
But if I omit the username and password, and use impersonation, it only returns 2 johns.
This is driving me crazy, I've searched all over the web for details on how to get this working, to no avail.
I've got impersonation set up in the WEB.CONFIG file correctly. The Directory Security of the folders on the webserver is set to deny anonymous access. This is as everything I've read recommends.