自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

一步一步實現(xiàn)ReportingServices2008匿名訪問

數(shù)據(jù)庫 SQL Server
在ReportingServices2005中我們需要匿名訪問報表的時候,只需要在IIS里面做下簡單設(shè)置就可以實現(xiàn),而在ReportingServices2008(R2)中不在依靠IIS,只是占用的還是80端口而已。其實匿名訪問有很多中解決辦法,譬如:使用ReportViewer控件、與SharePoint集成等等......

在ReportingServices2005中我們需要匿名訪問報表的時候,只需要在IIS里面做下簡單設(shè)置就可以實現(xiàn),而在ReportingServices2008(R2)中不在依靠IIS,只是占用的還是80端口而已。其實匿名訪問有很多中解決辦法,譬如:使用ReportViewer控件、與SharePoint集成等等......

下面我介紹SQL團隊技術(shù)博客所提供的比較徹底而且通用的方法 。(注:修改配置文件前如果害怕出問題請?zhí)崆皞浞?

第一步:編譯SQL團隊所提供的代碼并將所生成的Microsoft.Samples.ReportingServices.AnonymousSecurity.dll文件拷貝到SQL Server的安裝目錄*:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\bin下

你的項目中還需引用Microsoft.ReportingServices.Interfaces.dll 否則編譯會通不過

第二步:修改*:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer 和*:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportManager文件中的web.config文件,替換二者中的節(jié)點,將

  1. <authentication mode="Windows" />  
  2. <identity impersonate="true"/> 

替換為

  1. <authentication mode="None" />  
  2. <identity impersonate="false"/>  

第三步:修改*:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer修改rereportserver.config把

  1. <Authentication>  
  2.    <AuthenticationTypes>  
  3.     <RSWindowsNegotiate/>  
  4.     <RSWindowsNTLM/>  
  5.    </AuthenticationTypes>  
  6. <EnableAuthPersistence>true</EnableAuthPersistence>  
  7. </Authentication> 

修改為

  1. <Authentication>  
  2.    <AuthenticationTypes>  
  3.     <Custom/>  
  4.    </AuthenticationTypes>  
  5. <EnableAuthPersistence>true</EnableAuthPersistence>  
  6. </Authentication> 

第四步:修改*:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer修改rereportserver.config在

  1. <Security>  
  2.  <Extension Name="Windows" Type="Microsoft.ReportingServices.Authorization.WindowsAuthorization, Microsoft.ReportingServices.Authorization"/>  
  3. </Security>  
  4. <Authentication>  
  5.  <Extension Name="Windows" Type="Microsoft.ReportingServices.Authentication.WindowsAuthentication, Microsoft.ReportingServices.Authorization"/>  
  6. </Authentication> 

節(jié)點下,添加

  1. <Security>  
  2.        <Extension Name="None" Type="Microsoft.Samples.ReportingServices.AnonymousSecurity.Authorization, Microsoft.Samples.ReportingServices.AnonymousSecurity" />  
  3. </Security>  
  4. <Authentication>  
  5.        <Extension Name="None" Type="Microsoft.Samples.ReportingServices.AnonymousSecurity.AuthenticationExtension, Microsoft.Samples.ReportingServices.AnonymousSecurity" />  
  6. </Authentication>  

到此為止,ReportingServices2008(R2)的匿名訪問就大功告成了。

參考資料:

http://blogs.msdn.com/b/jameswu/archive/2008/07/15/anonymous-access-in-sql-rs-2008.aspx (官方教程)

http://lonely7345.cnblogs.com/ (對于AnonymousSecurity.dll有中文解釋)

原文鏈接:http://www.cnblogs.com/zhukuanglong/archive/2011/06/07/2074374.html


 

【編輯推薦】

 

  1. 淘寶海量數(shù)據(jù)庫之克服隨機IO難題
  2. 數(shù)據(jù)庫如何抵抗隨機IO的問題、方法與現(xiàn)實
  3. 一步一步設(shè)計你的數(shù)據(jù)庫之不可輕視的需求分析
  4. 養(yǎng)成一個SQL好習慣帶來一筆大財富
  5. 怎樣獲取某個數(shù)據(jù)庫的所有存儲過程SQL語句
責任編輯:艾婧 來源: 南望先生的博客
相關(guān)推薦

2022-08-29 15:19:09

CSS煙花動畫

2009-07-06 19:29:37

云計算私有云服務器虛擬化

2017-11-29 11:14:52

離線緩存URL協(xié)議緩存

2013-03-18 16:09:27

JavaEEOpenfire

2018-03-07 15:24:41

PythonMySQL

2022-09-30 15:37:19

Web網(wǎng)站服務器

2017-09-28 09:40:36

圖像分類準確率

2012-03-22 10:33:33

思杰XenDesktop

2009-12-18 16:27:43

Cisco路由器配置

2015-07-30 09:35:24

滑動返回代碼

2019-11-04 10:06:19

MySQL索引

2010-07-12 17:10:23

Android應用程序

2024-07-22 11:43:28

LVMPnetLab網(wǎng)絡(luò)

2017-08-24 08:31:41

2009-12-17 08:57:28

Windows 7磁盤分區(qū)

2016-11-02 18:54:01

javascript

2021-11-12 11:28:01

Linux 內(nèi)核驅(qū)動Linux 系統(tǒng)

2025-04-08 09:30:00

SeataDocker分布式系統(tǒng)

2021-12-03 07:59:21

Go語言進程

2017-07-15 21:10:58

CTOCEO技術(shù)
點贊
收藏

51CTO技術(shù)棧公眾號