CaseberryDomainRoleProvider
is the heir to the System.Web.Security.RoleProvider. Is CheckingLibrary.dll
and checks the user roles with regard to its domain.
Connection
Connection CaseberryDomainRoleProvider
is carried out similarly to that described in the article CaseberryMembershipProvider - powers.
<membership defaultProvider="CaseberryMembershipProvider">
<providers>
<clear/>
<add name="CaseberryMembershipProvider" type="CheckingLibrary.Web.CaseberryDomainMembershipProvider" applicationName="SLAuthSample" />
</providers>
</membership>
<roleManager defaultProvider="CaseberryRoleProvider" enabled="true">
<providers>
<clear/>
<add name="CaseberryRoleProvider" type="CheckingLibrary.CaseberryDomainRoleProvider"/>
</providers>
</roleManager>
Example usage
Let through management authority SOME_HOME
created a group, added a user with login VPupkin
, which defines the role of “Administrator”.
If [as MembershipProvider] used class CaseberryDomainMembershipProvider
, the web application will be login with the domain SOME_HOME\VPupkin
. If you do this, use CaseberryRoleProvider
, the assigned roles will be determined for the user with login SOME_HOME\VPupkin
, and if you register a class CaseberryDomainRoleProvider
as RoleProvider for user VPupkin
playgroup SOME_HOME
.