Sitefinity CMS

Role Providers Send comments on this topic.
See Also
Security > Authorization > Role Providers

Glossary Item Box

There are two types of Role Providers offered in Sitefinity: 

1)   Telerik.DataAccess.AspnetProviders.TelerikRoleProvider

2)   Telerik.Security.ActiveDirectory.TelerikADRoleProvider

 

TelerikRoleProvider  

The TelerikRoleProvider is similar to the System.Web.Security.SqlRoleProvider, but works with Nolics to use the Sitefinity application database. The Telerik provider makes queries against both the tables with users and with roles: Telerik_users, Telerik_roles and Telerik_UsersInRoles. Users and roles are set per application. Information about applications is provided in the Telerik_Application table.

 

Changes in the web.config File

To change the default membership and role providers for the entire CMS, the following settings should be made in the web.config file. 


The cmsProvidersName property sets the membership and role providers used by the UserManager class (manages users and roles in Sitefinity). Change the cmsProvidersName in:

web.config Copy Code
<telerik>
 
...
 
<security defaultProvider="DefaultSecurityProvider" cmsProvidersName="Sitefinity">
   
...
 
</security>
</
telerik>

 

The membershipProvider and roleProvider properties in the default security provider set the providers used in the SecurityManager class (manages permissions in Sitefinity). Change the MembershipProvider and RoleProvider of DefaultSecurityProvider:

web.config Copy Code
<telerik>
 
...
 
<security defaultProvider="DefaultSecurityProvider" cmsProvidersName="Sitefinity">
   
...
   
<providers>
     
<clear/>
     
<add name="DefaultSecurityProvider"
          
connectionStringName="DefaultConnection"
          
type="Telerik.Security.Data.DefaultSecurityProvider, Telerik.Security.Data"
          
membershipProvider="Sitefinity"
          
roleProvider="Sitefinity"
     
/>
   
</providers>
 
</security

 
...
<
/telerik>

 

TelerikADRoleProvider

The Telerik Active Directory Role Provider inherits the class System.Web.Security.RoleProvider and works with Active Directory data source. Using Telerik AD membership and Telerik AD role providers is the easiest combination when working with Active Directory data source in Sitefinity. 

For more information on Active Directory implementation in Sitefinity, see Active Directory

 

See Also