Author Topic: hMailserver password plugin IIS mssql  (Read 5352 times)

Offline spiren

  • Newbie
  • *
  • Posts: 2
hMailserver password plugin IIS mssql
« on: May 05, 2017, 03:06:07 PM »
Hello,
as many others, I would appreciate if my users could change their password through the password plugin in roundcube.
As indicated, I'm running the hMailserver (latest version) on a Windows 7 machine with IIS.
I enabled the password plugin in my roundcube config: "about" in roundcube says "password plugin".
I didn't change a lot in my password plugin config, mostly minimum password length windows user/password in hmailserver section.

I don't see any "Change password" option in the Roundcube Settings. No error log seems to be altered.
I'm certainly missing something - but what?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: hMailserver password plugin IIS mssql
« Reply #1 on: May 05, 2017, 06:17:45 PM »
Did you make a copy of config.inc.php.dist file to config.inc.php to make your changes?

Offline spiren

  • Newbie
  • *
  • Posts: 2
Re: hMailserver password plugin IIS mssql
« Reply #2 on: May 10, 2017, 03:24:08 AM »
yes. But I have to admit that I am a bit confused about the right commands/settings to put into the file.

This is the relevant part in config.inc.php in wwwroot/roundcube/config:
// ----------------------------------
// PLUGINS
// ----------------------------------
// List of active plugins (in plugins/ directory)
$config['plugins'] = array('password');

Here are extracts of config.inc.php in roundcube/plugins/password:
$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'] = 8;

$config['password_db_dsn'] = ''; <- this one I'm not sure about

$config['password_query'] = 'SELECT update_passwd(%c, %u)';

// By default the crypt() function which is used to create the %c
// parameter uses the md5 algorithm (deprecated, use %P).
// You can choose between: des, md5, blowfish, sha256, sha512.
$config['password_crypt_hash'] = 'md5';

$config['hmailserver_remote_dcom'] = false;
// Windows credentials
$config['hmailserver_server'] = array(
    'Server'   => 'localhost',      // hostname or ip address
    'Username' => 'my login username',  // windows username
    'Password' => 'this users password'        // windows user password
);



Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: hMailserver password plugin IIS mssql
« Reply #3 on: May 10, 2017, 09:37:19 AM »
I would guess that you want to use the hmail password driver, the readme says the following about it:

 
Code: [Select]
2.9. hMailServer (hmail)
 ------------------------

 Requires PHP COM (Windows only). For access to hMail server on remote host
 you'll need to define 'hmailserver_remote_dcom' and 'hmailserver_server'.
 See config.inc.php.dist file for more info.