+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Moving OpenAccessMembership37Provider to Default Authentication Provider after user migration?

Moving OpenAccessMembership37Provider to Default Authentication Provider after user migration?

8 posts, 0 answered
  1. Troy Benedict
    Troy Benedict avatar
    37 posts
    Registered:
    29 Apr 2009
    27 May
    Link to this post

    After successfully test migrating users from a 3.7-era project, I'd like to write a script that updates those migrated users to be part of the "Default" group.  I tried updating the sf_users table to point to the new manager_info and app_info fields with the values of a "Default" user and it didn't seem to work.   Can anybody let me know which fields and tables need to be updated so that when the final migration is done, I can run a script to update everybody and close out the Sitefinity 3.7 provider?  

    Also, is it possible to change the default trigger from true to false for "Is Backend User" when creating a new users - a majority of our users in the user table are customers and not employees with backend privileges.

  2. Dimitri Cools
    Dimitri Cools avatar
    80 posts
    Registered:
    08 Dec 2016
    01 Jun
    Link to this post
    Hi,

    Please observe the following KB article which handles about:
     
    Changing the default membership provider after migration from 3.7
     

    Regards,
    Dimitri Cools
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Troy Benedict
    Troy Benedict avatar
    37 posts
    Registered:
    29 Apr 2009
    01 Jun in reply to Dimitri Cools
    Link to this post

    Thanks for the response, but is there a solution that doesn't involve the resetting of user passwords? We have over 5000 users in our system, and while I'm all for changing passwords from time to time, this would be a headache for our administrative assistants to assist even 10% of those users with questions about why they received a password reset and login issues if they had them.  

    There isn't some DB table updates that can be done to switch one user and their appropriate related data to the new default provider?  

  4. Dimitri Cools
    Dimitri Cools avatar
    80 posts
    Registered:
    08 Dec 2016
    03 Jun
    Link to this post
    Hi, 
    I understand what you are saying but unfortunately because the passwords are hashed (with salt) it is not possible to change the provider for a user without recreating its password.
    Depending on the issue you want to overcome you could maybe for example customize the login widget that the provider is chosen automatically according to the user.

    Regards,
    Dimitri Cools
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  5. Troy Benedict
    Troy Benedict avatar
    37 posts
    Registered:
    29 Apr 2009
    03 Jun in reply to Dimitri Cools
    Link to this post

    Thanks for the details on that.  

    Is there documentation on setting the OpenAccessMembership37Provider as the primary login provider, and temporarily disable the current Default provider - at least for a bit until we come up with a good way to work with our customers to reset passwords and move everybody to the true default?  

     

  6. Dimitri Cools
    Dimitri Cools avatar
    80 posts
    Registered:
    08 Dec 2016
    06 Jun
    Link to this post
    Hi, 

    It is not recommended to remove/replace the Default provider, I would advice to alter the login widget to use the desired provider (OpenAccessMembership37Provider), similar to this section of
    Custom membership provider: Create the public login page that uses the new provider
    http://docs.sitefinity.com/custom-membership-provider-create-the-public-login-page-that-uses-the-new-provider

     

    Regards,
    Dimitri Cools
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  7. Troy Benedict
    Troy Benedict avatar
    37 posts
    Registered:
    29 Apr 2009
    07 Jun in reply to Dimitri Cools
    Link to this post

    Thanks, Dimitri.  I think that will be a good solution with the login.  

    If you don't mind, I have a related follow-up questions.  When adding new customers and employees, what is the best way reference the OpenAccessMembership37Provider for creating new users to ensure that we don't have a discrepancy with "default" users and OpenAccessMembership ones?  Both in terms of adding users from the SiteFinity dashboard and doing so programatically through code using the users API.

     

    Thank you for all of your time!  I appreciate it.

  8. Dimitri Cools
    Dimitri Cools avatar
    80 posts
    Registered:
    08 Dec 2016
    08 Jun
    Link to this post
    Hi, 
    When working through the backend UI you will have to choose the correct provider when managing the users and/or creating one, 
    eg.
    http://screencast.com/t/V1oSca17EDT


    When using the API, the GetManager() method takes an overload to specify the provider, 
    eg.

    UserManager userManager = UserManager.GetManager("OpenAccessMembership37Provider");
     
    List<User> users = userManager.GetUsers().ToList();

    more on 
    CRUD operations with users
    http://docs.sitefinity.com/for-developers-crud-operations-with-users

    I hope the above information helps. 

    Regards,
    Dimitri Cools
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
8 posts, 0 answered