У меня есть два отчета: один для внутренних пользователей, а другой для внешних пользователей,
Для внутренних пользователей мне нужно включить проверку подлинности с помощью формы для просмотра отчета вместо создания учетных записей пользователей на сервере.
Для внешних пользователей я не хочу включать какую-либо аутентификацию, чтобы они могли получить доступ к отчету из браузера без какой-либо аутентификации.
Я выполнил следующие шаги, используя образцы SSRS по ссылке ниже, после внесения всех изменений я получаю ошибку HTTP500. пожалуйста, помогите включить эту аутентификацию на основе формы.
изменить файл RSReportServer.config
Шаг 1:-
<Authentication>
<AuthenticationTypes>
<Custom/>
</AuthenticationTypes>
<EnableAuthPersistence>true</EnableAuthPersistence>
</Authentication>
Шаг 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>
Шаг 3:-
<UI>
<CustomAuthenticationUI>
<loginUrl>/Pages/UILogon.aspx</loginUrl>
<UseSSL>True</UseSSL>
</CustomAuthenticationUI>
<ReportServerUrl>http://<server>/ReportServer</ReportServerUrl>
</UI>
изменить файл 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>
изменить файл RSMgrPolicy.config
Шаг 5: -
<CodeGroup
class="FirstMatchCodeGroup"
version="1"
PermissionSetName="FullTrust"
Description="This code group grants MyComputer code Execution permission. ">
<IMembershipCondition
class="ZoneMembershipCondition"
version="1"
Zone="MyComputer" /> "}*To use Forms Authentication, you need to modify the Web.config files for Report Manager and Report Server
изменить файл Web.config для сервера отчетов
Шаг 6: -
<authentication mode="Forms">
<forms loginUrl="logon.aspx" name="sqlAuthCookie" timeout="60" path="/">
</forms>
</authentication>
Add the following <authorization> element directly after the <authentication> element.
<authorization>
<deny users="?" />
</authorization>.
Файл Web.config для диспетчера отчетов
Шаг 7: -
Disable impersonation by locating the section <identity impersonate= "true" /> and changing it to the following: <identity impersonate="false" />.
Locate the <authentication> element and change the Mode attribute to Forms.
Add the following keys to the <appSettings> element.
<add key="ReportServer" value="<Server Name>"/>
<add key="ReportServerInstance" value="<Instance Name>"/>
После выполнения всех вышеперечисленных шагов, когда я пытаюсь зарегистрировать пользователя, я получаю сообщение об ошибке «Ключевое слово не поддерживается: «mssqlserver; интегрированная безопасность».