Roundcube Community Forum

 

Pretty "Change Password" patch/module for v0.1RC1(07-7-3), +cPanel, +md5

Started by oslad, June 30, 2006, 10:51:23 PM

Previous topic - Next topic

oslad

Is pleased to announce the PRETTY "Change Password" patch/module for Roundcube v0.1RC1(2007-7-3) is available now!
Add support to cPanel --tested cPanel [10.9.0-RELEASE_57] (pro), md5crypt and verify current password.
Support IMAP database such as mysql, postgresql (and more? see also).

================v0.1-RC1(2007-7-3)================
You have two choice:

1. Download the package directy (the patch has been applied already)

2. Download the patch and apply it
Download roundcubemail-0.1-rc1-dep.tar.gz and this patch(right click, save as...) to a directory(say that /tmp).
$ cd /tmp
$ tar -xzf roundcubemail-0.1-rc1-dep.tar.gz
$ cd roundcubemail-0.1-rc1-dep/
$ patch -p1 < ../roundcubemail-0.1-rc1-dep-pw1.diff
$ tar -czf roundcubemail-0.1-rc1-dep-pw1.tar.gz roundcubemail-0.1-rc1-dep
you will get a file named "/tmp/roundcubemail-0.1-rc1-dep-pw1.tar.gz" has been applied this patch already(it's same as above).

Now, you can use this package just like the original Roundcubemail.

And a additional configuration is required, open "config/db.inc.php" (copy form "config/db.inc.php.dist") to edit. Change the value for your special environment.

// The 'change_pwd_proc' can be 'change_pwd_for_db' or 'change_pwd_for_cpanel',
// If 'change_pwd_for_cpanel' is selected, the value of 'db_imap_xxxxxx' is omitted
$rcmail_config['change_pwd_proc'] = 'change_pwd_for_db';
$rcmail_config['db_imap_dsn'] = 'mysql://dbuser:your_passwd@localhost/mail_db';
$rcmail_config['db_imap_users_table'] = 'accountuser';
$rcmail_config['db_imap_user_field'] = 'username';
$rcmail_config['db_imap_passwd_field'] = 'password';
$rcmail_config['db_imap_passwd_type'] = '';  // '' (Plaintext), 'PASSWORD' or 'ENCRYPT'

For cPanel with non-english version, you may need to edit "program/steps/settings/passwd.inc" and modify:
$success = "Changed password";

Enjoy!


"After upgrade from v0.1beta2 to v0.1-RC1, I can not view e-mail?"
Here is how to resolve it.


--------------------------------
SCREENSHOT



Prasad1337


flosoft

As just posted in the other thread... how does it change the IMAP Password?

oslad

As a short/temporary solution, it change the IMAP password from mysql DB directly, not via IMAP protocol.

flosoft

hmm. That might be confusing for the users later on.

igeoffi

correct me if im wrong but by changing it from the database directly, shouldnt that solve the prob of changing passwords in roundcube on diff types of mail servers?

oslad

Quote from: igeoffi correct me if im wrong but by changing it from the database directly, shouldnt that solve the prob of changing passwords in roundcube on diff types of mail servers?

Any types of mail server will be work fine, while the imap/pop user's info(such as: username/password) is stored by mysql.

i have setup a mail server with postfix + cyrus-imap + sasl + mysql, this patch work very well.

rjswilson

yeah..this plugin won't work for me... i have xmail + courier imap + mysql, but mysql stores the password only for courier, not for xmail.

oslad

Quote from: rjswilson yeah..this plugin won't work for me... i have xmail + courier imap + mysql, but mysql stores the password only for courier, not for xmail.

you are correct at this point, i config postfix and cyrus-imap to use the same table for user info.
but store the same user info into different position, is reasonable?

zwone

Umm.. I can't download this patch... or maybe I just don't know how...
I just get to page with some chinese characters which I don't understand and from there I can go only back "home"...


SKaero


oslad

Quote from: zwone Umm.. I can't download this patch... or maybe I just don't know how...
I just get to page with some chinese characters which I don't understand and from there I can go only back "home"...

I'm sorry, please goto: http://oslad.com/component/option,com_remository/Itemid,19/func,select/id,2/

then click the download icon:

simoesp

it's preeety interessing i'll try to do a vacation module to use with the standard postfixadmin (panel) ;D


i'll see what i can do :P

Regards
Pedro SimÃÃ,µes
--------------------------------------------------------
**                       S.I.M.O.E.S.P.                       **
--------------------------------------------------------

oslad

Quote from: simoesp it's preeety interessing i'll try to do a vacation module to use with the standard postfixadmin (panel) ;D

Hi, Simoesp, it's welcome!

you can modify function "rcmail_save_passwd" in "passwd.inc" file to do that.

but it will be lots of thing to consider. as you can not consider postfix only, else other smtp server such as sendmail, Qmail etc. won't work. i don't know if a standard smtp or imap or pops protocol can use with.

the source code of squirrelmail maybe a very useful reference, but i have no time to read it recently.