SQL 服务器 ReportServer 服务不断在浏览器中询问凭据
SQL Server ReportServer Service keeps asking for credentials in browser
使用 MS SQL 2018R2 报表服务器服务,以下 URL 不断提示输入凭据:
http://ServerName/Reports
http://ServerName/Reportserver
即使在多次尝试输入用户和密码后,它仍然不断要求提供凭据,没有显示报告的索引页。我确信凭据是正确的。只有使用浏览器才会出现问题。但是,它不是特定于浏览器的。
它曾经工作了很多年,但突然间就停止工作了。我们没有对 RS 配置进行任何更改。问题是它不会连接并显示报告页面。与数据源的连接是在报告中配置的,但这不是问题,我们甚至无法使用 select 报告。期望的行为是用户将输入一次凭据,然后将显示包含报告的索引页面。
ReportBuilder3.0 或 BIDS 可以轻松呈现具有相同凭据的报表。此外,SQL 服务器代理 运行 执行触发报告服务的 SSIS 包的多个作业,它们仍然 运行 正常。因为这些 运行 很好,所以我对更改服务帐户等设置犹豫不决。
ReportService 用作我们自己域内的 Intranet 报告解决方案。在端口 80 配置。
我已阅读以下帖子,但仍在努力寻找解决方案:
Similar question 1
Similar question 2
其他来源:
1)将rsreportserver.config中的认证方式改为自定义
<Authentication>
<AuthenticationTypes>
<Custom/>
</AuthenticationTypes>
<EnableAuthPersistence>true</EnableAuthPersistence>
</Authentication>
2)将 ReportServer 中 web.config 文件中的身份验证模式更改为 None。同时将 Impersonation 更改为 false。
<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 找到所有这些配置文件,具体取决于您的版本为报告服务安装。
使用 MS SQL 2018R2 报表服务器服务,以下 URL 不断提示输入凭据:
http://ServerName/Reports
http://ServerName/Reportserver
即使在多次尝试输入用户和密码后,它仍然不断要求提供凭据,没有显示报告的索引页。我确信凭据是正确的。只有使用浏览器才会出现问题。但是,它不是特定于浏览器的。
它曾经工作了很多年,但突然间就停止工作了。我们没有对 RS 配置进行任何更改。问题是它不会连接并显示报告页面。与数据源的连接是在报告中配置的,但这不是问题,我们甚至无法使用 select 报告。期望的行为是用户将输入一次凭据,然后将显示包含报告的索引页面。
ReportBuilder3.0 或 BIDS 可以轻松呈现具有相同凭据的报表。此外,SQL 服务器代理 运行 执行触发报告服务的 SSIS 包的多个作业,它们仍然 运行 正常。因为这些 运行 很好,所以我对更改服务帐户等设置犹豫不决。
ReportService 用作我们自己域内的 Intranet 报告解决方案。在端口 80 配置。
我已阅读以下帖子,但仍在努力寻找解决方案:
Similar question 1
Similar question 2
其他来源:
1)将rsreportserver.config中的认证方式改为自定义
<Authentication>
<AuthenticationTypes>
<Custom/>
</AuthenticationTypes>
<EnableAuthPersistence>true</EnableAuthPersistence>
</Authentication>
2)将 ReportServer 中 web.config 文件中的身份验证模式更改为 None。同时将 Impersonation 更改为 false。
<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 找到所有这些配置文件,具体取决于您的版本为报告服务安装。