More in this section

Forums / Developing with Sitefinity / Set permissions Active Directory Roles for forum module

Set permissions Active Directory Roles for forum module

5 posts, 0 answered
  1. Lio
    Lio avatar
    10 posts
    Registered:
    08 Jan 2009
    11 Feb 2009
    Link to this post
    Hi,

    I want to use Sitefinity users for administration part and Active Directory users for public part as forums. But when I go to Modules-> Forums -> permissions, I cant find any ways to settingpermissions for AD groups. In web.config, I read the sitefinity document and can configure only two permissions : Unrestricted and None for users.

    Currently, our AD users have either admin right (which can edit, delete) or view only right.

    After searching the sitefinity forum, I find out it seems that sitefinity dont provide assigning permissions for AD roles.

    What should I do to set forum module permissions for AD roles?

    Best regards,

    Lio
  2. Vlad
    Vlad avatar
    498 posts
    Registered:
    19 Jun 2017
    16 Feb 2009
    Link to this post
    Hi Lio,

    Actually, Sitefinity Security API supports applying permissions for multiple role providers, however the user interface for this is implemented only for the cms pages, but not for the Modules. In other words, if you have more than one role providers declared in the web.config, and you go to the Pages -> SiteMap -> Permissions section, you will see a drop down list with the available role providers. Unfortunately, this drop down is missing for the modules, where all permissions are set for the Sitefinity provider by default.

    Currently, you can use the following trick to set the permissions for your Active Directory roles in the Forums module:

      - Set your AD membership and role providers as defaults for the Sitefinity administration in the web.config;
       - Set one of the AD roles as unrestricted :
        <security defaultProvider="DefaultSecurityProvider" cmsProvidersName="AD"
          <roles> 
            <clear/> 
            <add name="Administrators" permission="Unrestricted"/> 
            <add name="MyADRole" permission="Unrestricted"/> 
          </roles> 
     

       - Log in the Sitefintiy with a AD user which belongs to MyADRole role (unrestricted);
       - Go to the Modules-> Forums -> Permissions and set the permissions for the AD roles;
       - Roll back the previous security settings in the web.config.

    Bare in mind, that after restoring the default security settings you won't be able to view the AD permissions for the forums module, but still they will br verified when an AD user is logged in the Sitefinity.

    Here are some related KB articles you may also take a look:
    http://www.sitefinity.com/support/knowledge-base/kb-article/b1154K-bakk-b1154T-cmb.aspx
    http://www.sitefinity.com/support/knowledge-base/kb-article/b1154K-hth-b1154T-cmb.aspx
      
    Even this is not a straightforward solution, I hope it is helpful.


    Regards,
    Vlad
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Lio
    Lio avatar
    10 posts
    Registered:
    08 Jan 2009
    17 Feb 2009
    Link to this post
    Hi Vlad ,

    I have also found this way but not sure if it is stably working.

    You help me to make clear a lot of confusions.

    Could you help me some guides so that I can implement to add the interface for modules?

    Thank you very much.


  4. Vlad
    Vlad avatar
    498 posts
    Registered:
    19 Jun 2017
    24 Feb 2009
    Link to this post
    Hello Lio,

    Sorry for the late replay.
    We delayed it, because we were looking for an easy way to accomplish this with current PermissionSet control for modules. Unfortunately, we were not able to find an appropriate solution.
    However, we will implement this functionality in the 3.6 service pack, which will be released at the end of March with the Q1 of the ASP.NET RadControls.
    In the meantime, we suggest you using the previously provided approach - it is uncomfortable, but stable.
    We are sorry for the inconvenience.

    Kind regards,
    Vlad
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Lio
    Lio avatar
    10 posts
    Registered:
    08 Jan 2009
    25 Feb 2009
    Link to this post
    Hi Vlad,

    Thank you and your team very much for the help.

    I am using the current approach and waiting for the next release :).

    Best regards,
    Lio


Register for webinar
5 posts, 0 answered