Windows Authentication with SSRS ASP.NET ReportViewer and Web Service

后端 未结 2 707
渐次进展
渐次进展 2021-02-10 03:08

I\'m having a few problems using SSRS currently. I have an ASP.NET website that uses Windows Authentication. That works fine and I know the website current user is the currently

相关标签:
2条回答
  • 2021-02-10 03:22

    Instead of

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

    You could try

    return WindowsIdentity.GetCurrent();
    
    0 讨论(0)
  • 2021-02-10 03:35

    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!

    0 讨论(0)
提交回复
热议问题