Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Neil Hodges 338 posts 987 karma points
    Jul 20, 2017 @ 15:37
    Neil Hodges
    0

    Adding Members from v7.2.8 to v7.6.3 using CMS Import and MemberService

    Hi

    Im trying to migrate Members from one Umbraco Instance to a newer one. Im hitting a problem when using CMS Import.

    I can connect to the other Umbraco instance and it maps correctly to all the properties as far as I can see.

    When the import runs, I get - Error during import, check the logfile for details

    So looking in the Log Files I see lots of this:

    System.NotSupportedException: This provider does not support manually changing the password
       at Umbraco.Core.Security.MembershipProviderBase.ChangePassword(String username, String oldPassword, String newPassword)
       at Umbraco.Core.Services.MemberService.SavePassword(IMember member, String password)
       at CMSImport.MemberServiceImportProvider.MemberServiceImportProvider.(ImportState , Dictionary`2 , AdvancedSettingFieldOptions , String , ImportActions , IMember , PropertyInfo , Object  , Boolean  )
       at CMSImport.MemberServiceImportProvider.MemberServiceImportProvider.ImportMembers(ImportState state, ImportStatistics importStatistics, Int32 importAsUserId)
     2017-07-20 16:26:22,071 [P9116/D4/T168] ERROR CMSImport.MemberServiceImportProvider.MemberServiceImportProvider - CMSImport:CMSImport: A record failed to import for alias@@#Import_password
    

    Is there a way around this? Is this something to do with copying the passwords to the new instance?

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Jul 21, 2017 @ 05:57
    Richard Soeteman
    1

    Hi Neil,

    It says it can't change the password. Enable manual change password on the membership provider properties in web.config.

    But Umbraco changed password format so the hashed password from the old instance will propably not work in the new instance. You can change this by setting enableSimpleMembership to true in web.config then it's all working like before.

    Best,

    Richard

  • Neil Hodges 338 posts 987 karma points
    Jul 21, 2017 @ 08:24
    Neil Hodges
    1

    HI Richard

    Thanks for getting back to me so quickly.

    Ive changed the settings within the web.config.

    <add name="UmbracoMembershipProvider" type="Umbraco.Web.Security.Providers.MembersMembershipProvider, Umbraco" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="4" useLegacyEncoding="false" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Member" passwordFormat="Hashed" allowManuallyChangingPassword="true" />
    <add name="UsersMembershipProvider" type="Umbraco.Web.Security.Providers.UsersMembershipProvider, Umbraco" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="4" useLegacyEncoding="false" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" passwordFormat="Hashed" allowManuallyChangingPassword="true" />
    

    However when i change:

    <add key="enableSimpleMembership" value="true" />
    

    I get a Configuration Error (See screenshot below) Am I missing another setting somewhere?

    enter image description here

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Jul 24, 2017 @ 06:12
    Richard Soeteman
    0

    Weird Neil,

    Maybe check on the issue tracker of Umbraco if this is a known issue..

    Best,

    Richard

  • Heather Floyd 610 posts 1032 karma points MVP 6x c-trib
    Dec 14, 2017 @ 03:29
    Heather Floyd
    0

    Just a note for anyone stumbling upon this topic...

    You WILL have a successful import of members (with hashed passwords) from one umbraco site to another if you do the following:

    1. Make the web.config updates as specified above.
    2. When setting up your Import, when you are on the step to map fields, click the + next to "password" and check the box to "Store password as clear text".

    password setting

    The second step will ensure that the hashes are copied between databases and not hashed again on import.

Please Sign in or register to post replies

Write your reply to:

Draft