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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值