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

查看:51
本文介绍了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天全站免登陆