Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: tarunmathur on February 03, 2020, 09:06:39 AM

Title: hMailServer password change
Post by: tarunmathur on February 03, 2020, 09:06:39 AM
Hi,
I am using hMailserver along with roundcube, its working fine but the users are unable to change the password from their login. Is there any way that the users can change the password from their inbox.

Thanks
Title: Re: hMailServer password change
Post by: JohnDoh on February 03, 2020, 12:45:36 PM
Have a look at the password plugin that ships with Roundcube. It has a driver for hMail.
Title: Re: hMailServer password change
Post by: tarunmathur on February 05, 2020, 05:45:18 PM
Thanks for your reply, eveything is good, the password plugin is enabled and its showing the password change option.

But when finally i give the current password and the new password and as soon as I hit the "SAVE" button, it transfer to blank page. Please tell me what wrong might I have done or what can be the possible way to rectify it.

Thanks
Title: Re: hMailServer password change
Post by: JohnDoh on February 06, 2020, 04:06:16 AM
Check the Roundcube error log.
Title: Re: hMailServer password change
Post by: tarunmathur on February 06, 2020, 07:19:31 AM
Hi here are the logs

[06-Feb-2020 04:06:49 Asia/Kolkata] PHP Fatal error:  Uncaught Error: Class 'COM' not found in C:\Downloads\websites\complete\plugins\password\drivers\hmail.php:36
Stack trace:
#0 C:\Downloads\websites\complete\plugins\password\password.php(387): rcube_hmail_password->save('tarunC234234', 'Tarun@234234', 'tarunmathur@ush...')
#1 C:\Downloads\websites\complete\plugins\password\password.php(183): password->_save('tarunC234234', 'Tarun@234234')
#2 C:\Downloads\websites\complete\program\lib\Roundcube\rcube_plugin_api.php(494): password->password_save()
#3 C:\Downloads\websites\complete\index.php(288): rcube_plugin_api->exec_action('plugin.password...')
#4 {main}
  thrown in C:\Downloads\websites\complete\plugins\password\drivers\hmail.php on line 36
[06-Feb-2020 04:08:37 Asia/Kolkata] PHP Fatal error:  Uncaught Error: Class 'COM' not found in C:\Downloads\websites\complete\plugins\password\drivers\hmail.php:36
Stack trace:
#0 C:\Downloads\websites\complete\plugins\password\password.php(387): rcube_hmail_password->save('tarunC234234', 'Tarun@234234', 'tarunmathur@ush...')
#1 C:\Downloads\websites\complete\plugins\password\password.php(183): password->_save('tarunC234234', 'Tarun@234234')
#2 C:\Downloads\websites\complete\program\lib\Roundcube\rcube_plugin_api.php(494): password->password_save()
#3 C:\Downloads\websites\complete\index.php(288): rcube_plugin_api->exec_action('plugin.password...')
#4 {main}
  thrown in C:\Downloads\websites\complete\plugins\password\drivers\hmail.php on line 36
Title: Re: hMailServer password change
Post by: SKaero on February 06, 2020, 09:41:01 AM
Code: [Select]
2.1.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.
https://www.php.net/manual/en/com.installation.php
Title: Re: hMailServer password change
Post by: tarunmathur on February 06, 2020, 10:08:03 AM
Hi,
PHP Com is already enabled in PHP.INI in windows.

hmailserver_remote_dcom=false

hmailserver_server credentials are the localhost, username and password that are used to connect the hMailServer from the frontend.

Thanks
Title: Re: hMailServer password change
Post by: JohnDoh on February 07, 2020, 02:12:56 AM
Quote
PHP Com is already enabled in PHP.INI in windows.
Are you sure? Have you checked the output from phpinfo()?
Title: Re: hMailServer password change
Post by: tarunmathur on February 07, 2020, 05:04:01 AM
Please find the entries done in my 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=

[COM_DOT_NET]
extension=php_com_dotnet.dll


Which entry in phpinfo() is there to check dcom???
Title: Re: hMailServer password change
Post by: JohnDoh on February 07, 2020, 07:13:16 AM
The reason I suggested phpinfo() was because you have said you are stuck, you believe PHP is correctly is configured and yet it is not working. By running phpinfo() from the environment where your scrript you can check that PHP reports the COM extension is enabled as you expect (it has a section for the that extension). Since this is not really a roundcube issue you might get better advice from a windows+php forum.