Jump to:

1136 Posts in 1984 Topics by 403 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Migrating Users from Symfony to Silverstripe 3

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 551 Views
  • sktzoootech
    Avatar
    Community Member
    5 Posts

    Migrating Users from Symfony to Silverstripe 3 Link to this post

    Hi All,

    I need help on migrating users from a website built using symfony to silverstripe 3. I got a table of users from a symfony built website with sha1 hashed passwords and salts. I want to import the users to a freshly setup silverstripe 3 website. I tried to insert a sample entry to SS3s Member table by manually inserting the hashed password, the salt and changed the password encryption algorithm to sha1 but it didn't work. I also tried using Security::set_password_encryption_algorithm in my _config.php to override the password encryption from blowfish to sha1 but it doesn't seem to change the password algorithm.

    I would really need help on this since I only have a few days left to deliver the project. Any ideas on how I should do the migration?

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Migrating Users from Symfony to Silverstripe 3 Link to this post

    Dig into the symfony code base to see how the authentication layer works compared to SilverStripe's PasswordEncryptor_PHPHash. It could do it salt + password vs password + salt or any other number of other differences.

  • sktzoootech
    Avatar
    Community Member
    5 Posts

    Re: Migrating Users from Symfony to Silverstripe 3 Link to this post

    Thanks Willr. I got it working already. I extended PasswordEncryptor and swapped how the salt + the password was combined before hash.

    551 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.