设为首页 收藏本站
查看: 2370|回复: 0

[经验分享] Microsoft SQL SERVER 2008 R2 REPORT SERVICE 匿名登录

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2014-4-3 15:00:55 | 显示全部楼层 |阅读模式
SQL SERVER 2008 R2 是微软目前最新的数据库版本,现在SSRS2008 R2已经和IIS完全分离,每次通过IE URL方式访问报表 会弹出登录凭证,很是厌烦!



(1)、首先我们找到SSRS安装目录下的两个web.config配置文件,

默认安装目录分别是(C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer和C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportManager),然后,找到两个配置文件中的

复制代码
<authentication mode="windows" />      

<identity impersonate="true" />

将其改为

<authentication mode="None"/>  

<identity impersonate="false" />
复制代码



(2)、找到(C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer)目录下的rsreportserver.config文件,找到配置文件中的
复制代码
<Authentication>

  <AuthenticationTypes>

    <RSWindowsNegotiate/>

    <RSWindowsNTLM/>

   </AuthenticationTypes>

  <RSWindowsExtendedProtectionLevel>Off</RSWindowsExtendedProtectionLevel>

  <RSWindowsExtendedProtectionScenario>Proxy</RSWindowsExtendedProtectionScenario>

  <EnableAuthPersistence>true</EnableAuthPersistence>

</Authentication>
复制代码


将其改为
复制代码
<Authentication>

  <AuthenticationTypes>

    <Custom/>

  </AuthenticationTypes>

   <RSWindowsExtendedProtectionLevel>Off</RSWindowsExtendedProtectionLevel>

  <RSWindowsExtendedProtectionScenario>Proxy</RSWindowsExtendedProtectionScenario>

  <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>
复制代码


从上边两个节点中我们可以看出,我们需要引用一个dll文件,就是Microsoft.Samples.ReportingServices.AnonymousSecurity.dll,我们需要将这个dll放入到
(C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\bin)目录下。

  (3)、在将dll放入到目录以后,我们来继续修改我们的配置文件,
在(C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer)目录下,找到rssrvpolicy.config
找到
<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 class="UrlMembershipCondition" version="1"  
Url="C:\Program Files\Microsoft SQLServer\MSRS10_50.MSSQLSERVER2008\Reporting Services\ReportServer\bin\Microsoft.Samples.ReportingServices.AnonymousSecurity.dll" />
</CodeGroup>

到此为止,我们匿名登录的方式,配置工作就完成了!
当我们修改了数据源不使用凭据后,我们需要给报表制定一个默认的执行账户,打开SSRS的配置管理,选择执行账户,设置一个系统中的账户,输入密码即可。
如图:
031132596098985.jpg

DLL 不知道怎么发!

给个下载地址吧金山快盘附件ReportingServices.AnonymousSecurity.rar(3.99KB)

主要是工作碰到要解决这个问题.记录个!


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-16792-1-1.html 上篇帖子: 使用SQL Server临时表来实现字符串合并处理 下篇帖子: openfire配置MSSQL说明(数据库设置) Microsoft
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表