how to convert password from dnn4 to dnn6

196 Views Asked by At

i need to import all users from a dnn 4 site to dnn 5 site.i have already imported all tables.but in membership table the password encryption is different for dnn4 and dnn5. i have register the same user in both sites.and the password and passwordsalt are different in version 4 and 5.so while import users from dnn 4 to 5,i cannot login to the new site.

How to decrypt the old password and encrypt the same for new one?

2

There are 2 best solutions below

1
On

checking for machine key value in web.config and matching them may solve the problem

3
On

Between 4 and 6 (really between any installs) one of the best things is to have one of the user manager tools that allows you to export users with password and import them into another portal or install.

As an alternative -

  1. make a copy of the dnn 4 site
  2. upgrade the dnn 4 site to dnn 6 (or whatever version you like)
  3. now copy the machine key etc over to other site and copy in users

Something like the alternative is not really clean and prone to problems (especially if the portal already has users - like the host)