Roundcube doesnt change the password

urbee

Verified User
Joined
Mar 27, 2009
Messages
118
We have an issue with changing e-mail passwords in Roundcube.

I change the password and the system tells me password has changed but its not. The old one still works and the new one doesnt.

I have no idea which logs to check on this.

I've changed $rcmail_config['password_directadmin_host'] = 'ssl://localhost';
to ssl (as above) as we're using SSL.

Cant find much on this here on forums..atleast not the same issue. I'd guess roundcube would throw an error instead of sayin the password is changed.

Any help is appreciated.
 
Let's see /var/www/html/roundcube/plugins/password/README

2.5. DirectAdmin Control Panel (directadmin)
--------------------------------------------

You can specify which host to connect to via 'password_directadmin_host' (don't
forget to use tcp:// or ssl://) and what port via 'password_direactadmin_port'.
The password enforcement with plenty customization can be done directly by
DirectAdmin, please see http://www.directadmin.com/features.php?id=910
See config.inc.php.dist file for more info.


It seems, you've done it. OK. Did you read directadmin logs?
What if you try

PHP:
$rcmail_config['password_directadmin_host'] = 'ssl://127.0.0.1';

An please show your results for

Code:
 /usr/local/directadmin/directadmin c | grep -i ssl

if you've got defined ssl_redirect_host= then you should put its value into $rcmail_config['password_directadmin_host'], so they should match.
 
Output of /usr/local/directadmin/directadmin c | grep -i ssl:

ssl_port=0
enable_ssl_sni=0
ssl=1
ssl_cipher=(null)
ssl_redirect_host=www.domain.com
apachecert=/etc/httpd/conf/ssl.crt/server.crt
apachekey=/etc/httpd/conf/ssl.key/server.key

If i set it to www.domain.com i get "Unable to change password" aswell as if i set it to 127.0.0.1. DirectAdmin logs do not show anything about it.
 
Try this configuration for Directadmin then:

Code:
port=2221
ssl_port=2222
ssl=0
ssl_redirect_host=www.domain.com

And close 2221 port from outside connection with your firewall. make sure to restart DA.

Change Roundcube settings to

Code:
$rcmail_config['password_directadmin_host'] = 'tcp://127.0.0.1';
$rcmail_config['password_directadmin_port'] = 2221;

You'll be able to connect to https://www.domain.com:2222/ outside and http://127.0.0.1:2221/ from inside.
 
Last edited:
I'm unfortunately having the same problem. I'm however using SSL but I cannot get the passwords to update.

Any thoughts?

/usr/local/directadmin/directadmin c | grep -i ssl
ssl_port=2222
ssl_ignore_when_local=0
enable_ssl_sni=0
openssl=/usr/bin/openssl
ssl=1
ssl_cipher=HIGH:!aNULL:!MD5
ssl_redirect_host=host2.ignitionlabs.com
apachecert=/etc/httpd/conf/ssl.crt/server.crt
apachekey=/etc/httpd/conf/ssl.key/server.key
apacheca=/etc/httpd/conf/ssl.crt/server.ca
nginx_cert=/etc/nginx/ssl.crt/server.crt
nginx_key=/etc/nginx/ssl.key/server.key
nginx_ca=/etc/nginx/ssl.crt/server.ca
webapps_ssl=0


Try this configuration for Directadmin then:

Code:
port=2221
ssl_port=2222
ssl=0
ssl_redirect_host=www.domain.com

And close 2221 port from outside connection with your firewall. make sure to restart DA.

Change Roundcube settings to

Code:
$rcmail_config['password_directadmin_host'] = 'tcp://127.0.0.1';
$rcmail_config['password_directadmin_port'] = 2221;

You'll be able to connect to https://www.domain.com:2222/ outside and http://127.0.0.1:2221/ from inside.
 
PS. I tried adding this to my config but it wasn't successful...

port=2221
ssl_port=2222
ssl=1
ssl_redirect_host=hostx.mydomain.com
 
Back
Top