DirectorySearcher.FindOne

DirectorySearcher.FindOne

Post by Balu » Sat, 27 Sep 2003 18:17:54


Hi,

I have some code to access our active directory and get
back user's details in a web page. The code executes
perfectly if I access the web site from the server but
fails if from a remote machine. Impersonation is set to
true on my web site and even with the same user, the
FindOne method fails. I am using the delegation option on
the directorysearcher. I simply get the exception
message: "An operation error occured". Does anyone know
why this is?

Thanks in advance.
 
 
 

DirectorySearcher.FindOne

Post by maxv » Sat, 27 Sep 2003 23:40:18

Sounds a lot like a double hop issue. Review the following KB to insure that kerberos is being used on the IIS server:
326985 HOW TO: Troubleshoot Kerberos-Related Issues in IIS
http://www.yqcomputer.com/

Sincerely,
Max Vaughn [MS]
Microsoft Developer Support


Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights. You assume all risk for your use.