求助:hmailserver+roundcube启用密码插件后,用户无法修改密码问题

环境

windows 8

apache:httpd-2.4.25-x64-vc14-r1

mysql:5.6

php:php-7.1.5-Win32-VC14-x64

hmailserver:hMailServer-5.6.7-B2407

roundcube:roundcubemail-1.2.5-complete

搭建成功,可以正常使用,收发邮件,但就是在修改密码时发生错误,提示“无法保存新密码”。而我又发现,但新密码与旧密码相同时,则提示修改密码成功。无论怎样修改配置文件中的SQL语句,只要新旧密码一样,都会提示修改成功,貌似UPDATE语句根本没有发生作用。目前纠结困惑中,网上查的方法都试过了,均无结果,求大神指点,不胜感激。

以下密码插件配置config.inc.php:

<?php

// Password Plugin options
// -----------------------
// A driver to use for password change. Default: "sql".
// See README file for list of supported driver names.
$config['password_driver'] = 'sql';

// Determine whether current password is required to change password.
// Default: false.
$config['password_confirm_current'] = true;

// Require the new password to be a certain length.
// set to blank to allow passwords of any length
$config['password_minimum_length'] = 0;

// Require the new password to contain a letter and punctuation character
// Change to false to remove this check.
$config['password_require_nonalpha'] = false;

// Enables logging of password changes into logs/password
$config['password_log'] = false;

// Comma-separated list of login exceptions for which password change
// will be not available (no Password tab in Settings)
$config['password_login_exceptions'] = null;

// Array of hosts that support password changing. Default is NULL.
// Listed hosts will feature a Password option in Settings; others will not.
// Example: array('mail.example.com', 'mail2.example.org');
$config['password_hosts'] = null;

// Enables saving the new password even if it matches the old password. Useful
// for upgrading the stored passwords after the encryption scheme has changed.
$config['password_force_save'] = false;

// Enables forcing new users to change their password at their first login.
$config['password_force_new_user'] = false;

// Default password hashing/crypting algorithm.
// Possible options: des-crypt, ext-des-crypt, md5-crypt, blowfish-crypt,
// sha256-crypt, sha512-crypt, md5, sha, smd5, ssha, samba, ad, dovecot, clear.
// For details see password::hash_password() method.
$config['password_algorithm'] = 'clear';

// Password prefix (e.g. {CRYPT}, {SHA}) for passwords generated
// using password_algorithm above. Default: empty.
$config['password_algorithm_prefix'] = '';

// Path for dovecotpw/doveadm-pw (if not in the $PATH).
// Used for password_algorithm = 'dovecot'.
// $config['password_dovecotpw'] = '/usr/local/sbin/doveadm pw'; // for dovecot-2.x
$config['password_dovecotpw'] = '/usr/local/sbin/dovecotpw'; // for dovecot-1.x

// Dovecot password scheme.
// Used for password_algorithm = 'dovecot'.
$config['password_dovecotpw_method'] = 'CRAM-MD5';

// Iteration count parameter for Blowfish-based hashing algo.
// It must be between 4 and 31. Default: 12.
// Be aware, the higher the value, the longer it takes to generate the password hashes.
$config['password_blowfish_cost'] = 12;

// Number of rounds for the sha256 and sha512 crypt hashing algorithms.
// Must be at least 1000. If not set, then the number of rounds is left up
// to the crypt() implementation. On glibc this defaults to 5000.
// Be aware, the higher the value, the longer it takes to generate the password hashes.
//$config['password_crypt_rounds'] = 50000;

// This option temporarily disables the password change functionality.
// Use it when the users data
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在 Hmailserver 中使用 MySQL 数据库,请按照以下步骤操作: 1. 安装 MySQL 数据库,并创建一个数据库和一个用户。 2. 在 Hmailserver 管理员控制台中,选择“外部数据库”并启用 MySQL 数据库。 3. 输入 MySQL 数据库连接信息,包括主机名、数据库名称、用户名和密码。 4. 完成配置后,可以使用 MySQL 数据库来存储 Hmailserver 中的邮件和用户信息。 如果您想在 Hmailserver修改 MySQL 数据库中存储的密码,可以按照以下步骤操作: 1. 使用 MySQL 客户端连接到数据库。 2. 执行以下命令以更改用户密码: ``` UPDATE hm_accounts SET accountpassword = 'new_password' WHERE accountaddress = 'user_email_address'; ``` 其中,“hm_accounts” 是 Hmailserver 中存储用户信息的表,“accountpassword” 是密码字段,“new_password” 是新密码,“user_email_address” 是用户的电子邮件地址。 3. 如果您正在使用 Roundcube Webmail,您需要更新 Roundcube 数据库中的密码以使其与 Hmailserver 数据库中的密码匹配。您可以按照以下步骤执行此操作: a. 使用 MySQL 客户端连接到 Roundcube 数据库。 b. 执行以下命令以更改密码: ``` UPDATE users SET password = MD5('new_password') WHERE username = 'user_email_address'; ``` 其中,“users” 是 Roundcube 中存储用户信息的表,“password” 是密码字段,“new_password” 是新密码,“user_email_address” 是用户的电子邮件地址。 c. 完成后,用户可以使用新密码登录 Roundcube Webmail。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值