Roundcube Community Forum

 

How to solve 'PHP Error: Password plugin: Hash method not supported'?

Started by simonleung, November 17, 2025, 08:16:19 AM

Previous topic - Next topic

simonleung

I find the error message PHP Error: Password plugin: Hash method not supported in the log file of Roundcube. Is it about wrong configuration of Roundcube password plugin? How do I solve it?

SKaero


simonleung

Quote from: SKaero on November 17, 2025, 09:36:38 AMCan you post how you have the password plugin configured?

The configuration of config.inc.php is as follows and could you help me check it?


$config['password_driver'] = 'ldap';

$config['password_confirm_current'] = true;

$config['password_log'] = true;

$config['password_algorithm'] = 'ssha512';

$config['password_ldap_host'] = 'testdomain.com';

$config['password_ldap_port'] = '389';

$config['password_ldap_starttls'] = false;

$config['password_ldap_version'] = '3';

$config['password_ldap_basedn'] = 'dc=testdomain,dc=com';

$config['password_ldap_method'] = 'user';

$config['password_ldap_adminDN'] = null;

$config['password_ldap_adminPW'] = null;

$config['password_ldap_userDN_mask'] = 'uid=%login,ou=people,dc=testdomain,dc=com';

$config['password_ldap_searchDN'] = 'cn=roundcube,ou=services,dc=testdomain,dc=com';

$config['password_ldap_searchPW'] = 'secret';

$config['password_ldap_search_base'] = 'ou=people,dc=testdomain,dc=com';

$config['password_ldap_search_filter'] = '(uid=%login)';

$config['password_ldap_encodage'] = 'md5-crypt';

$config['password_ldap_pwattr'] = 'userPassword';

$config['password_ldap_force_replace'] = true;

$config['password_ldap_lchattr'] = '';

$config['password_ldap_ppolicy_cmd'] = 'change_ldap_pass.pl';

$config['password_ldap_ppolicy_uri'] = 'ldap://testdomain.com/';;

$config['password_ldap_ppolicy_basedn'] = 'dc=testdomin,dc=com';

$config['password_ldap_ppolicy_searchDN'] = 'cn=someuser,dc=testdomain,dc=com';

$config['password_ldap_ppolicy_searchPW'] = 'secret';

$config['password_ldap_ppolicy_search_filter'] = '(uid=%login)';

$config['password_ldap_ppolicy_cafile'] = '/etc/ssl/cacert.crt';


SKaero

I don't see anything there that should be causing an issue. In the plugins/password/password.php file can you change "Password plugin: Hash method not supported." to "Password plugin: Hash method (". $method .") not supported." and then post the error so we can see what method its trying to use?

simonleung

Quote from: SKaero on Today at 01:59:45 AMI don't see anything there that should be causing an issue. In the plugins/password/password.php file can you change "Password plugin: Hash method not supported." to "Password plugin: Hash method (". $method .") not supported." and then post the error so we can see what method its trying to use?

Quote from: SKaero on Today at 01:59:45 AMI don't see anything there that should be causing an issue. In the plugins/password/password.php file can you change "Password plugin: Hash method not supported." to "Password plugin: Hash method (". $method .") not supported." and then post the error so we can see what method its trying to use?


Thanks for your help. It was my wrong and I have solved that problem. Still, I found another problem in the log file(see https://www.roundcubeforum.net/index.php?topic=31768.0). Could you help me check it?