简体   繁体   English

TYPO3 argon2 密码哈希在服务器部分移动后不匹配

[英]TYPO3 argon2 password hashes matches after server move partly not

After moving a TYPO3 v9.5.10 from one server to another, some fe/be_users who have allready an argon password hash, have a login problem.将 TYPO3 v9.5.10 从一台服务器移动到另一台服务器后,一些已经拥有 argon 密码 hash 的 fe/be_users 出现登录问题。 The generated hashes do not seem to match on the new server.生成的哈希值在新服务器上似乎不匹配。 If we reset the password within the backend to the identical password, the login works again.如果我们在后端将密码重置为相同的密码,登录将再次生效。 It concerns only a part of the users.它只涉及一部分用户。

Does anybody have an idea what this could be due to?有谁知道这可能是由于什么原因造成的?

PHP Versions: PHP 版本:

  • old Server 7.3.19旧服务器 7.3.19
  • new Server 7.3.17 / tested also with 7.2.30 on another server新服务器 7.3.17 / 也在另一台服务器上使用 7.2.30 进行了测试

Executing a php -i | grep sodium执行php -i | grep sodium php -i | grep sodium in the command line interface should show something like命令行界面中的php -i | grep sodium应该显示类似

sodium
sodium support => enabled
libsodium headers version => 1.0.18
libsodium library version => 1.0.18

libsodium contains the implementation for corresponding Argon2 hashing functionality. libsodium包含相应的 Argon2 哈希功能的实现。 Searching and installing sodium or libsodium in the package repositories of your operating system usually solve this.在操作系统的 package 存储库中搜索并安装sodiumlibsodium通常可以解决此问题。

As an alternative using PECL like shown in https://lukasmestan.com/install-libsodium-extension-in-php7/ might still work:作为替代方法,使用https://lukasmestan.com/install-libsodium-extension-in-php7/中所示的 PECL 可能仍然有效:

sudo pecl install -f libsodium
sudo echo "extension = sodium.so" > /etc/php/7.3/mods-available/sodium.ini

The old server has the following versions installed:旧服务器安装了以下版本:

sodium support  enabled
libsodium headers version   1.0.15
libsodium library version   1.0.15

the new one (Docker PHP Container) this:新的(Docker PHP Container)这个:

sodium support  enabled
libsodium headers version   1.0.18
libsodium library version   1.0.18

Two other webservers has no sodium installed.另外两个网络服务器没有安装钠。 But the problem occurs on all 3 new environments, whether with or without sodium.但问题出现在所有 3 个新环境中,无论是否有钠。

Could this be a problem?这可能是个问题吗? Should we check here some more?我们应该在这里再检查一下吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM