小编kar*_*tik的帖子

如何在SSRS 2008 RS中配置/启用基于表单的身份验证

我有两个报告,一个是内部用户,另一个是外部用户,

对于内部用户,我需要启用表单身份验证才能查看报告,而不是在服务器中创建用户帐户.

对于外部用户,我不想启用任何身份验证,以便他们可以从浏览器访问报告而无需任何身份验证.

我按照以下步骤使用来自以下链接的SSRS样本,在完成所有更改后我得到HTTP500错误.请帮助启用此基于表单的身份验证.

修改RSReportServer.config文件

步骤1:-

<Authentication>
    <AuthenticationTypes> 
        <Custom/>
    </AuthenticationTypes>
    <EnableAuthPersistence>true</EnableAuthPersistence>
</Authentication>
Run Code Online (Sandbox Code Playgroud)

第2步:-

<Security>
    <Extension Name="Forms" 
Type="Microsoft.Samples.ReportingServices.CustomSecurity.Authorization, 
Microsoft.Samples.ReportingServices.CustomSecurity" >
        <Configuration>
            <AdminConfiguration>
                <UserName>username</UserName>
            </AdminConfiguration>
        </Configuration>
    </Extension>
</Security>
<Authentication>
    <Extension Name="Forms" Type="Microsoft.Samples.ReportingServices.CustomSecurity.AuthenticationExtension, Microsoft.Samples.ReportingServices.CustomSecurity" />
</Authentication>
Run Code Online (Sandbox Code Playgroud)

第3步: -

<UI>
    <CustomAuthenticationUI>
        <loginUrl>/Pages/UILogon.aspx</loginUrl>
        <UseSSL>True</UseSSL>
    </CustomAuthenticationUI>
    <ReportServerUrl>http://<server>/ReportServer</ReportServerUrl>
</UI> 
Run Code Online (Sandbox Code Playgroud)

修改RSSrvPolicy.config文件

第4步:-

<CodeGroup
class="UnionCodeGroup"
version="1"
Name="SecurityExtensionCodeGroup"
Description="Code group for the sample security extension"
PermissionSetName="FullTrust">
    <IMembershipCondition 
    class="UrlMembershipCondition"
    version="1"
    Url="C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\bin\Microsoft.Samples.ReportingServices.CustomSecurity.dll"
    />
</CodeGroup> 
Run Code Online (Sandbox Code Playgroud)

修改RSMgrPolicy.config文件

第五步: -

<CodeGroup 
class="FirstMatchCodeGroup" 
version="1" …
Run Code Online (Sandbox Code Playgroud)

sql-server forms-authentication reporting-services ssrs-2008 msbi

12
推荐指数
1
解决办法
1070
查看次数