ReportService部署之匿名访问

SQL2008 配置了ReporService后,可以访问了,但是每次都要输入Windows用户验证,很是繁琐。

那么我想实现匿名验证。

这里,需要大概知道下它的原理,我们访问ReportService的管理地址、或者Web地址,在其安装目录下都是有对应目录的。

ReportService部署之匿名访问_第1张图片

查看对应的目录,可以看到和正常的web程序一样,也有对应的config文件,那么我们就可以修改config文件去实现匿名访问:

首先备份文件(注意文件夹):

\ReportServer\web.config

\ReportServers\rsreportserver.config

\ReportManager\Web.config

1、修改、③两个文件

查找:

替换为:

2、修改@2文件,

注释:

        

             

             

        

         true

    

添加

<Authentication>

         >

              />

         >

         >tureEnableAuthPersistence>

     >

 

查找以下代码

<Security>

              ="Windows"Type="Microsoft.ReportingServices.Authorization.WindowsAuthorization,Microsoft.ReportingServices.Authorization"/>

         >

         >

              ="Windows"Type="Microsoft.ReportingServices.Authentication.WindowsAuthentication,Microsoft.ReportingServices.Authorization"/>

         >

 

在代码后添加

<Security>

              ="None"Type="Microsoft.Samples.ReportingServices.AnonymousSecurity.Authorization,Microsoft.Samples.ReportingServices.AnonymousSecurity"/>

         >

         >

              ="None"Type="Microsoft.Samples.ReportingServices.AnonymousSecurity.AuthenticationExtension,Microsoft.Samples.ReportingServices.AnonymousSecurity"/>

         >

1.  dll文件拷贝到\ReportServer\bin

Microsoft.Samples.ReportingServices.AnonymousSecurity.dll

重启SSRS服务


另外解决问题之前,也看了csdn其他两篇文章:

http://blog.csdn.net/zhangzeshuai/article/details/4618030

http://blog.csdn.net/frank_softworks/article/details/6755871


你可能感兴趣的:(SQL,Server,ReportService,匿名验证,报表)