Windows Authentication with SSRS ASP.NET ReportViewer and Web Service

别来无恙 提交于 2019-12-03 08:19:25
kjo4jc

I was having my own troubles here but was ultimately successful.

Machine 1: client browser

Machine 2: webserver

Machine 3: SSRS + SQL Server

To solve the double hop I had the IT department turn on Active Directory Delegation for Machine2, setting to "Trust this computer for delegation to any service (Kerberos Only)".

On my webserver I modified the Web.config file to have:

 <authentication mode="Windows"/>
 <identity impersonate="true"/>

On the SSRS server I modified the rsreportserver.config file, adding <RSWindowsNegotiate/> to the <AuthenticationTypes> section. I believe the default is <RSWindowsNTLM/>. I just left both in there, giving me:

I restarted the SSRS server and all started working.

Hope this helps someone!

Instead of

return (WindowsIdentity)HttpContext.Current.User.Identity;

You could try

return WindowsIdentity.GetCurrent();
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!