SSRS2008 配置匿名登录的方法

按公司要求需要在ERP系统中嵌入 Server reports 

但是在访问SSRS2008的报表时需要输入帐号密码才能访问,在SSRS2008的管理界面中由没有匿名访问设置的地方,所以更改SSRS的配置文件

修改的文件清单如下:(个人路径:C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\)

注:个人路径看你自己实际安装报表服务的路径

(1)ReportServer\Web.config

(2)ReportServer\rsreportserver.config

(3)ReportServer\rssrvpolicy.config

(4)ReportManager\Web.config

步骤一:在(1)(4)文件中找到该节点

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

修改成

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

步骤二(1):在(2)文件中找到

<Authentication>
<AuthenticationTypes>
     <RSWindowsNegotiate/>
     <RSWindowsNTLM/>
</AuthenticationTypes>
<EnableAuthPersistence>true</EnableAuthPersistence>
</Authentication>

修改成

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

步骤二(2)

<Security>
 <Extension Name="Windows" Type="Microsoft.ReportingServices.Authorization.WindowsAuthorization, Microsoft.ReportingServices.Authorization" />
 </Security>
 <Authentication>
 <Extension Name="Windows" Type="Microsoft.ReportingServices.Authentication.WindowsAuthentication, Microsoft.ReportingServices.Authorization" />
 </Authentication>

修改成

<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>

步骤三:

下载Microsoft.Samples.ReportingServices.AnonymousSecurity.dll,

 将其放入C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer\bin中

 下载地址:  https://download.csdn.net/download/qq_24886681/10731557

步骤四:修改(3)文件

<CodeGroup 
class="FirstMatchCodeGroup version="1" 
PermissionSetName="Nothing"> 
<IMembershipCondition 
class="AllMembershipCondition" 
version="1" />

  在该节点下添加

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

步骤五:

重启SSRS服务

猜你喜欢

转载自blog.csdn.net/qq_24886681/article/details/83178687