SQL Server ReportServer服务不断在浏览器中要求提供凭据

时间:2018-09-19 12:59:32

标签: sql-server reporting-services ssrs-2008

使用MS SQL 2018R2报表服务器服务,以下URL不断提示输入凭据:

http://ServerName/Reports
http://ServerName/Reportserver

即使多次尝试输入用户名和密码,它仍然不断要求提供凭据,没有显示报告的索引页。我确定凭据正确无误。仅通过使用浏览器,问题就会出现。但是它不是特定于浏览器的。

它曾经运行了好几年,但是突然间它停止了工作。我们没有对RS配置进行任何更改。问题是它将无法连接并显示“报告”页面。在报表中配置了与数据源的连接,但这不是问题,我们甚至无法选择要使用的报表。所需的行为是,用户将输入一次凭据,然后将显示带有报告的索引页面。

ReportBuilder3.0或BIDS可以轻松地使用相同的凭据呈现报表。而且,SQL Server代理运行执行SSIS包的多个作业,这些作业会触发reportservices,并且它们仍可以正常运行。由于这些程序运行良好,因此我不愿意更改服务帐户等设置。

ReportService用作我们自己域内的Intranet报告解决方案。在端口80上配置。

我已阅读以下帖子,但仍在努力寻求解决方案:

Similar question 1

Old solution 2

Similar question 2

Link 4

其他来源:

Report Service Authentication

Service Account settings

1 个答案:

答案 0 :(得分:1)

1)将rsreportserver.config中的身份验证模式更改为“自定义”

<Authentication>
   <AuthenticationTypes>
     <Custom/>
    </AuthenticationTypes>
   <EnableAuthPersistence>true</EnableAuthPersistence>
  </Authentication>

2)将ReportServer中web.config文件中的身份验证模式更改为“无”。还将“模拟”更改为“假”。

<authentication mode="None" />
<identity impersonate="false"/>

3)将Microsoft.Samples.ReportingServices.AnonymousSecurity.dll添加到ReportServer中的bin文件夹。

4)在rsreportserver.config中添加扩展 在安全标签中添加其他扩展名

<Security>
    <Extension Name="None" Type="Microsoft.Samples.ReportingServices.AnonymousSecurity.Authorization, Microsoft.Samples.ReportingServices.AnonymousSecurity" />
</Security>

在身份验证标签中添加其他扩展名

<Authentication>
    <Extension Name="None" Type="Microsoft.Samples.ReportingServices.AnonymousSecurity.AuthenticationExtension, Microsoft.Samples.ReportingServices.AnonymousSecurity" />
</Authentication>

5)添加以下代码组以在rssrvpolicy.config中配置代码访问安全性

<CodeGroup
class="UnionCodeGroup"
version="1"
PermissionSetName="FullTrust"
Name="Private_assembly"
Description="This code group grants custom code full trust. ">
<IMembershipCondition
class="UrlMembershipCondition"
version="1"
Url="C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer\bin\Microsoft.Samples.ReportingServices.AnonymousSecurity.dll"
/>
</CodeGroup>

6)重新启动报告服务,匿名访问应该可以工作。

根据安装的报告服务版本,您可以在-C:\ Program Files \ Microsoft SQL Server \ MSRS12.MSSQLSERVER \ Reporting Services \ ReportServer中找到所有这些配置文件。

相关问题