`

匿名访问Reporting Service 2008

阅读更多

我想通过访问Url的方式,把部署到Sql Server  Reporting Service 上的报表集成到Web应用中,但是直接访问地址总是要提示属于凭证,在网上找了几种方法都差不多,摘录一个:

ReportingService是个很强大的报表引擎!但实现Reporting Service2008 的匿名访问是件比较费劲的事情,网上提供的方法挺多的,但都不适用于使用URL方式访问。

RS2005依赖于IIS,可使用IIS的匿名账户进行匿名登录访问。而RS2008不依赖于IIS,即无法通过IIS的匿名账户进行访问,也就是你访问需要输入有效的用户名及密码。

被逼无奈求助谷歌大神!找到一篇“Anonymous access in SQL RS 2008”的文章,仔细看看,根据内容进行配置。无奈没用,仔细研究找原因:“F××× You!!” 我装的是64位的MSSQL2008,我竟然在32位的目录下设置来,设置去,无奈我傻×了。找准对象重新来,“Bingo!” OK了!下面是设置方法。原文请见:http://blogs.msdn.com/b/jameswu/archive/2008/07/15/anonymous-access-in-sql-rs-2008.aspx

我这就就简单翻一下,做个记录。

1、找到RS2008的安装目录,如果你是64位系统,并且安装的是64位的MSSQL2008,并且是默认路径安装,请移步文件夹:C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQL2008\Reporting Services  否则请根据你自己的设置去找。

2、备份文件(注意文件夹):

①\ReportServer\web.config

②\ReportServer\rssrvpolicy.config

③\ReportServers\rsreportserver.config

④\ReportManager\Web.config

3、修改①、④两个文件

查找:

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

替换为:

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

4、修改③文件

查找:

<Authentication>
<AuthenticationTypes>
××××××××××××××××××××××××××××××××××××××
</AuthenticationTypes>
<EnableAuthPersistence>true</EnableAuthPersistence>
</Authentication>

替换为:

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

查找:

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

5、下载文件:AnonymousSecurity.dll 解压保存到目录“\ReportServer\bin\”文件夹下。

6、修改②文件

查找:

<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
version="1"
Url="C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQL2008\Reporting Services\ReportServer\bin\Microsoft.Samples.ReportingServices.AnonymousSecurity.dll"
/>
</CodeGroup>

到此为止配置结束,重启RS服务即可。

还有几个网站,但只有一个英文站给了源码,但是我编译后没有效果,希望有心人能继续研究:英文资料:http://blogs.msdn.com/b/jameswu/archive/2008/07/15/anonymous-access-in-sql-rs-2008.aspx

网友编译好的dll下载:http://files.cnblogs.com/zhukuanglong/ReportingServices.AnonymousSecurity.rar

 

参考资料:

http://blogs.msdn.com/b/jameswu/archive/2008/07/15/anonymous-access-in-sql-rs-2008.aspx

http://wenzhen.me/2011/07/%E5%AE%9E%E7%8E%B0reporting-service2008%E5%8C%BF%E5%90%8D%E8%AE%BF%E9%97%AE%E7%9A%84%E6%96%B9%E6%B3%95/

http://hi.baidu.com/liupras/blog/item/0041edea84fd64cbd439c924.html

http://blog.sina.com.cn/s/blog_7778950d0100qa61.html

http://www.fengfly.com/plus/view-172495-1.html

 

 

分享到:
评论

相关推荐

    Reporting Service for SQL 2008匿名访问报表的方法

    以下是如何设置Reporting Service for SQL 2008以支持匿名访问报表的详细步骤: 1. **编译AnonymousSecurity组件**: 首先,你需要一个名为`AnonymousSecurity.cs`的源代码文件,它提供了匿名访问的支持。编译这个...

    一步一步实现ReportingServices2008匿名访问

    1. C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer下的web.config、rsreportserver.config、rssrvpolicy.config 2. C:\Program Files\Microsoft SQL Server\MSRS10....

    Reporting Services发布的报表允许匿名访问

    - **目标**:允许匿名用户访问Reporting Services站点。 - **步骤**: 1. 访问运行IIS的Web服务器上的Reporting Services管理站点 (`http://localhost/reports`)。 2. 在**Properties(属性)**页面下添加一个新的...

    reporting service的部署

    为了确保 Reporting Services 可以被正常访问,首先需要在 IIS 和 SQL Server 2005 中设置,让 Reporting Services 发布的 Web 报表允许匿名访问。具体步骤如下: - 在 IIS 中,选择允许匿名访问的选项(即 IUSR_**...

    AnonymousSecurity.dll文件和配置文档.rar

    以下是关于SQL Server 2008 Reporting Services匿名访问配置的相关知识点: 1. **启用IIS匿名身份验证**:在配置报表服务的匿名访问时,首先需要在IIS(Internet Information Services)中启用匿名身份验证。这通常...

    安全部署企业WEB服务器.pdf

    包括Computer Browser、Task scheduler、Routing and Remote Access、Removable storage、Remote Registry Service、Print Spooler、IPSEC ...Com+ Event System、Alerter、Error Reporting Service、Messenger、Telnet服务...

    又一篇不错的win2003服务器安全设置图文教程

    - 清空“网络访问:可匿名访问的共享”、“网络访问:可匿名访问的命名管道”、“网络访问:可远程访问的注册表路径”和“网络访问:可远程访问的注册表路径和子路径”等项。 - 在“本地策略-安全选项”中,添加...

    Web服务器系统安全策略

    1. 限制匿名访问:通过本地安全策略,可以禁止非认证用户通过SAM账户和共享进行匿名枚举,增强系统的安全性。选择“网络访问: 不允许 SAM 帐户和共享的匿名枚举”,将其设置为“已启用”。 2. 保护物理存储设备:为...

    win2003安全配置[整理].pdf

    例如,Computer Browser、Task Scheduler、Messenger、Distributed File System、Distributed Link Tracking Client、Error Reporting Service、Microsoft Search、NTLM Security Support Provider、Print Spooler、...

    2003安全配置

    禁用`IPSEC Services`、`BITS`、`Network Location Awareness`、`Performance ...reporting service`、`Windows Installer`、`Windows Management Instrumentation Driver Extensions`、`WMI Performance Adapter`和`...

    Windows2003Web服务器安全策略

    8. Distributed Link Tracking Client、Com+ Event System、Alerter、Error Reporting Service、Messenger和Telnet等服务同样可以根据实际需求关闭,降低系统风险。 策略二:磁盘权限设置 严格控制磁盘权限有助于...

    服务器安全设置教程

    - 清空可匿名访问的共享和命名管道。 - 在终端服务中禁止某些特定账户的登录。 - **目的**:进一步限制非授权用户的访问权限。 ##### 2.7 默认共享禁用 - **操作**:通过注册表编辑器禁用默认共享。 - **命令**...

    Windows2003服务器配置安全策略大全

    Error Reporting Service和Messenger服务可能泄露敏感信息,应关闭;而Telnet服务由于存在安全隐患,通常建议替换为更安全的远程访问方式,如SSH。 策略二:磁盘权限设置 严格的磁盘权限控制是保障数据安全的关键。...

    SQL+server+客户端网络实用工具独立包

    6. **SQL Server Error and Usage Reporting**:此功能允许SQL Server向微软发送匿名的错误报告和使用数据,帮助微软改进产品和服务。用户可以根据需要选择开启或关闭这个选项。 7. **SQL Server Browser Service**...

Global site tag (gtag.js) - Google Analytics