Impersonation does not work
Hi, I have a MSRS data extension assembly. When try opening my report in IE and attach the debugger to the ReportingServices.exe, WindowsIdentity.GetCurrent() always returns the identify of the MSRS service account. I have <identity impersonate="true" /> in the ReportServer/web.config. Also <AuthenticationTypes> <RSWindowsNTLM/> <RSWindowsNegotiate/> </AuthenticationTypes> in my rsreportserver.config. How do I make MSRS impersonate the user account executing IE?
October 14th, 2010 6:12pm

I guess you are trying to Configure Windows Authentication in Reporting Services, if that the case this article will be helpful http://msdn.microsoft.com/en-us/library/cc281253.aspx
Free Windows Admin Tool Kit Click here and download it now
October 14th, 2010 6:41pm

Jaime, The config files are changed as per the topic. It still does not work. What exactly am I missing from that topic? //Misha
October 15th, 2010 10:24am

Hi Mishka, Your configuritions are right, but the code is wrong. It should be HttpContext.user... instead of WindwosIdentity.GetCurrent(). As you said, the WindowsIdentity.GetCurrent() always returns the identity of the MSRS service account who is used to execute reporting service background processing and can't be impersonated. You should impersonate the client user who access report server/report manager websites, so you should use HttpContext class to get the current client user account for impersonation. See http://msdn.microsoft.com/en-us/library/system.web.httpcontext.user.aspx or http://msdn.microsoft.com/en-us/library/system.web.httpcontext.aspx to learn more about httpcontext class. thanks, Jerry
Free Windows Admin Tool Kit Click here and download it now
October 18th, 2010 6:06am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics