Author Topic: RC Plugin "hMailServer External accounts" für HMailserver - Konfiguration ?  (Read 13038 times)

Offline OlafWalther

  • Newbie
  • *
  • Posts: 4
Hallo guten Abend,

Ich habe eine lokale HMailserverinstallation mit einer MySQl Datenbank auf einem Windows 10 Rechner.
Roundcube läuft auf dem selben Rechner in einer XXAMP installation.

Die Konfiguration Roundcube zu HMailserver läuft einwandfrei und ich kann damit auf die Emailkonten des HMailservers zugreifen.

Ich möchte den Benutzern die Möglichkeit geben von Roundcube aus ihr Emailpasswort auf dem HMailserver zu ändern.

Dazu konnte ich das Roundcube Plugin "hMailServer External accounts Plugin for Roundcube" finden.

Ich habe in Roundcube noch keine Erfahrung mit der Installation mit Plugins.

Kennt Jemand dieses Plugin und hat ein paar Tips?

Mit der "Readme" Datei komme ich nicht weiter.

Viele Grüße
Olaf

Offline OlafWalther

  • Newbie
  • *
  • Posts: 4
Ich habe mich an diese Anleitung gehalten und zwar nur mit dem "password" plugin von roundcube:

RoundCube config.inc.php
// ----------------------------------
// PLUGINS
// ----------------------------------
// List of active plugins (in plugins/ directory)
$config['plugins'] = array(password);

Password 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'] = 'hmail';

// 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'] = 7;

// 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'] = true;

// 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.
$config['password_hosts'] = array('mail.aaaaa.gob.ar', 'mail.bbbbb.com.ar', 'mail.ccccc.com.ar');

// 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;

// hMail Driver options
// -----------------------
// Remote hMailServer configuration
// true: HMailserver is on a remote box (php.ini: com.allow_dcom = true)
// false: Hmailserver is on same box as PHP
$config['hmailserver_remote_dcom'] = false;
// Windows credentials
$config['hmailserver_server'] = array(
'Server' => 'localhost', // hostname or ip address
'Username' => 'user', // windows username
'Password' => 'password' // windows user password
);

Username and password are the same I use to connect to Hmail Administrator

PHP.ini
[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
; http://php.net/com.typelib-file
;com.typelib_file =

; allow Distributed-COM calls
; http://php.net/com.allow-dcom
com.allow_dcom = true

; autoregister constants of a components typlib on com_load()
; http://php.net/com.autoregister-typelib
;com.autoregister_typelib = true

; register constants casesensitive
; http://php.net/com.autoregister-casesensitive
;com.autoregister_casesensitive = false

; show warnings on duplicate constant registrations
; http://php.net/com.autoregister-verbose
;com.autoregister_verbose = true

; The default character set code-page to use when passing strings to and from COM objects.
; Default: system ANSI code page
;com.code_page=

Nur habe ich folgendes Problem, das nach dem Ändern und Speichern des neuen Emailkennwortes eine leere Seite erscheint und das Kennwort nicht gespeichert werden kann.

im Error Log steht:
[23-Feb-2018 13:24:06 Europe/Berlin] PHP Fatal error:  Uncaught Error: Class 'COM' not found in C:\xampp\htdocs\plugins\password\drivers\hmail.php:40
Stack trace:
#0 C:\xampp\htdocs\plugins\password\password.php(335): rcube_hmail_password->save('meinaltesKennwort', 'Mein neues Kennwort')
#1 C:\xampp\htdocs\plugins\password\password.php(172): password->_save('meinaltesKennwort', 'Mein neues Kennwort')
#2 C:\xampp\htdocs\program\lib\Roundcube\rcube_plugin_api.php(493): password->password_save()
#3 C:\xampp\htdocs\index.php(289): rcube_plugin_api->exec_action('plugin.password...')
#4 {main}
  thrown in C:\xampp\htdocs\plugins\password\drivers\hmail.php on line 40


Die Funktion [COM) in der XXAMP / php.ini habe ich aktiviert.
com.allow_dcom = true

Muss der DCOM noch irgendwie konfiguriert werden?

LG Olaf