This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Password Roundcube Plugin
#1
Password Roundcube Plugin
Hi, I've followed the instructions here but I get an error every time I try to save a new password, it shows an alert saying the password couldn't be saved. I've checked the postfix Mysql password and also tried the config.inc.php-dist file and nothing worked.

What may I be doing wrong?

Thanks in advance.
Reply
Thanks given by:
#2
RE: Password Roundcube Plugin
For sure and better if you ask help there or ping the user who posted the tutorial.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#3
RE: Password Roundcube Plugin
Hi @Me.B, unfortunately he's very busy and can't help me right now. Anyone else that may give a hand?

Thanks in advance.
Reply
Thanks given by:
#4
RE: Password Roundcube Plugin
@ las2conB
have you checked the file permissions?
did you double checked every setting?

If you want help spend a bit more time explaining your issue, the steps you did to install the plugin, what is the exact error you are getting and provide us any other information you might think it is relevant.
Without correct information all we can do is guess, not help.
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:
#5
RE: Password Roundcube Plugin
(04-28-2015, 09:15 PM)apinto Wrote: @ @[las2conB]
have you checked the file permissions?
did you double checked every setting?

If you want help spend a bit more time explaining your issue, the steps you did to install the plugin, what is the exact error you are getting and provide us any other information you might think it is relevant.
Without correct information all we can do is guess, not help.

Hi @apinto sorry for the delay in my reply, I was not subscribe to the topic and I've just found out that you did it quite a long time ago.

So I've double checked every setting and here's what I have:

- I've the following file in my /etc/sentora/panel/etc/apps/webmail/plugins/password folder:

 4 -rwxrwxrwx 1 root root   865 May 13 00:00 config.inc.php

- Here's its content (following the mentioned post instructions):


Code:
$rcmail_config['password_driver'] = 'sql';

$rcmail_config['password_confirm_current'] = true;
$rcmail_config['password_minimum_length'] = 0;
$rcmail_config['password_require_nonalpha'] = false;
$rcmail_config['password_log'] = false;

// SQL Driver options
$rcmail_config['password_db_dsn'] = 'mysql://postfix:'the_actual_postfix_mysql_password'@localhost/sentora_postfix';
// Intended on fleshing this out a bit, but wanted to get something working first
$rcmail_config['password_query'] = 'UPDATE mailbox SET password=%D WHERE username=%u';
$rcmail_config['password_idn_ascii'] = false;
// Also tried making a shell script called dovecotpw that just passes the arguments on to doveadm pw, no difference
$rcmail_config['password_dovecotpw'] = '/usr/bin/doveadm pw';
$rcmail_config['password_dovecotpw_method'] = 'PLAIN-MD5';
$rcmail_config['password_dovecotpw_with_method'] = true;

When I log in my webmail and try to change the password, here's what I get (in spanish): see attachement.

Translation of the alert box: "An error has occurred" "A new password couldn't be saved".

I have double checked the password (hidden here for security reasons) and it's the right one.

Any help would be mostly appreciated.

Best regards.

P.S. If I set the same password, success message shows up, just in case it helps.


Attached Files Thumbnail(s)
   
Reply
Thanks given by:
#6
RE: Password Roundcube Plugin
Could not save new password. Encryption function missing..How to fix this pls
Reply
Thanks given by:
#7
RE: Password Roundcube Plugin
(07-26-2015, 06:56 AM)sknd Wrote: Could not save new password. Encryption function missing..How to fix this pls

already checked the location of the file encryption?

you must put your location

Could not save new password. Encryption missing..How to Fix This function pls

$rcmail_config['password_dovecotpw'] = '/usr/bin/doveadm pw';

Cool

'/usr/bin/doveadm pw';
Reply
Thanks given by:
#8
RE: Password Roundcube Plugin
I even can not find main.inc.php

#ls
/etc/sentora/configs/roundcube/ -al
total 20
drwxrwxrwx. 2 root root 4096 Oct 22 13:30 .
drwxrwxrwx. 13 root root 4096 Oct 3 09:02 ..
-rwxrwxrwx. 1 root root 4735 Oct 22 13:28 roundcube_config.inc.php
-rwxrwxrwx. 1 root root 2902 Oct 3 09:29 sieve_config.inc.php

Can anyone set me full content of main.inc.php, I will add it by hand.
Reply
Thanks given by:
#9
RE: Password Roundcube Plugin
Roundcube no longer uses main.inc.php

Check the file config.inc.php inside the /etc/sentora/panel/etc/apps/webmail/config/ folder.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#10
RE: Password Roundcube Plugin
PHP Code:
Edit config.inc.php inside password folder

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

// SQL Driver options
// ------------------
// PEAR database DSN for performing the query. By default
// Roundcube DB settings are used.
$rcmail_config['password_db_dsn'] = 'mysql://postfix:POSTFIX_PASSWORD@localhost/sentora_postfix';
// The SQL query used to change the password.
// The query can contain the following macros that will be expanded as follows:
// %p is replaced with the plaintext new password
// %c is replaced with the crypt version of the new password, MD5 if available
// otherwise DES. More hash function can be enabled using the password_crypt_hash 
// configuration parameter.
// %D is replaced with the dovecotpw-crypted version of the new password
// %o is replaced with the password before the change
// %n is replaced with the hashed version of the new password
// %q is replaced with the hashed password before the change
// %h is replaced with the imap host (from the session info)
// %u is replaced with the username (from the session info)
// %l is replaced with the local part of the username
// (in case the username is an email address)
// %d is replaced with the domain part of the username
// (in case the username is an email address)
// Escaping of macros is handled by this module.
// Default: "SELECT update_passwd(%c, %u)"
//$config['password_query'] = 'SELECT update_passwd(%c, %u)';
$config['password_query'] = 'UPDATE mailbox SET password=CONCAT(\'{PLAIN-MD5}\',MD5(%p)) WHERE username=%u AND password=CONCAT(\'{PLAIN-MD5}\',MD5(%o)) LIMIT 1';
// By default the crypt() function which is used to create the '%c' 
// parameter uses the md5 algorithm. To use different algorithms 
// you can choose between: des, md5, blowfish, sha256, sha512.
// Before using other hash functions than des or md5 please make sure
// your operating system supports the other hash functions.
$config['password_crypt_hash'] = 'md5';
// By default domains in variables are using unicode.
// Enable this option to use punycoded names
$config['password_idn_ascii'] = false;
// Path for dovecotpw (if not in $PATH)
// $config['password_dovecotpw'] = '/usr/bin/doveadm pw';
// Dovecot method (dovecotpw -s 'method')
$config['password_dovecotpw_method'] = 'PLAIN-MD5';
// Enables use of password with crypt method prefix in %D, e.g. {MD5}$1$LUiMYWqx$fEkg/ggr/L6Mb2X7be4i1/
$config['password_dovecotpw_with_method'] = false;
// Using a password hash for %n and %q variables.
// Determine which hashing algorithm should be used to generate
// the hashed new and current password for using them within the
// SQL query. Requires PHP's 'hash' extension.
$config['password_hash_algorithm'] = 'sha1';
// You can also decide whether the hash should be provided
// as hex string or in base64 encoded format.
$config['password_hash_base64'] = false

Works on my webmail
Sentora 1.0.3 on [Image: DO_Logo_Horizontal_Blue-3db19536.png]

-= Github =-  -= My Repo =-

My Modules
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
How to upgrade RoundCube rajeevrrs 0 2 ,112 11-01-2022, 10:19 PM
Last Post: rajeevrrs
can not send email - SMTP error on roundcube wolvepy 9 31 ,818 01-03-2020, 08:37 AM
Last Post: Telepuzik
How to add password reset option in roundcube hakunamatata 15 68 ,195 02-08-2019, 12:20 PM
Last Post: republicus

Forum Jump:


Users browsing this thread: 3 Guest(s)