Drupal 到 wordpress 迁移(密码哈希问题) [英] Drupal to wordpress migration (issue with password hash)

查看:22
本文介绍了Drupal 到 wordpress 迁移(密码哈希问题)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将 Drupal 网站迁移到 wordpress.我希望使用相同的密码导入用户.但是密码哈希有问题.

I am migrating a Drupal site to wordpress. I want the users to be imported with same password. But there is a problem with the password hash.

当我在 wordpress 中使用 drupal 生成的密码时,它不起作用.但是当我在drupal中使用wordpress生成的密码时,它工作正常.想知道可能的情况以及如何解决.

When I user the password generated by drupal in wordpress its not working. but when I use the password generated by wordpress in drupal it works fine. Like to know what could be the possibility and how can I fix it.

密码:testtesttest

Password : testtesttest

哈希值,

由drupal生成(不在wordpress中工作):

Generated by drupal (not working in wordpress) :

$S$D6GbxXam3rP12Ka/Ua.WoNtSFQ4kwP99XvAH8mPfb6CVmmZJpN4G

$S$D6GbxXam3rP12Ka/Ua.WoNtSFQ4kwP99XvAH8mPfb6CVmmZJpN4G

由 wordpress 生成(也适用于 drupal):

Generated by wordpress (works with drupal also) :

$P$BMjlN43UhvN1KGpBxzD3oBBE9YrHlW1

$P$BMjlN43UhvN1KGpBxzD3oBBE9YrHlW1

由密码哈希在线生成(两者都适用)

Generated by password hasher online (works with both)

1fb0e331c05a52d5eb847d6fc018320d

1fb0e331c05a52d5eb847d6fc018320d

想知道解决办法.

是否是由于 drupal 添加了任何盐值,我可以将其添加到 wordpress 以使其工作.

Whether is it due to any salt value added by drupal and can I add the same to wordpress to make it work.

我正在使用 Drupal 7.29 和 wordpress 4.4.2

I am using Drupal 7.29 and wordpress 4.4.2

推荐答案

经过大量的谷歌搜索和研究,我找到了解决方案.

I have found a solution for this after doing a lot of googling and researching.

wordpress 有一个插件可以做到这一点

There is a plugin for wordpress to do this

覆盖

wp_hash_password()

wp_check_password() 

(由插件添加)

https://wordpress.org/plugins/drupal-password-encryption/

这篇关于Drupal 到 wordpress 迁移(密码哈希问题)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆