Author Topic: Pretty "Change Password" patch/module for v0.1RC1(07-7-3), +cPanel, +md5  (Read 209490 times)

oslad

  • Guest
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

« Last Edit: October 16, 2008, 03:58:25 AM by oslad »

Offline igeoffi

  • Jr. Member
  • **
  • Posts: 27
Re: A pretty "Change Password" patch/module for Roundcube
« Reply #1 on: June 30, 2006, 11:21:33 PM »
thanks!

Offline Prasad1337

  • Global Moderator
  • Full Member
  • *****
  • Posts: 114
Re: A pretty "Change Password" patch/module for Roundcube
« Reply #2 on: July 01, 2006, 05:31:52 AM »
as said before, looks good :) thanks.

Offline flosoft

  • Sr. Member
  • ****
  • Posts: 349
    • http://flosoft.biz
Re: A pretty "Change Password" patch/module for Roundcube
« Reply #3 on: July 01, 2006, 05:54:34 AM »
As just posted in the other thread... how does it change the IMAP Password?

oslad

  • Guest
Re: A pretty "Change Password" patch/module for Roundcube
« Reply #4 on: July 01, 2006, 09:16:00 AM »
As a short/temporary solution, it change the IMAP password from mysql DB directly, not via IMAP protocol.

Offline flosoft

  • Sr. Member
  • ****
  • Posts: 349
    • http://flosoft.biz
Re: A pretty "Change Password" patch/module for Roundcube
« Reply #5 on: July 01, 2006, 12:21:29 PM »
hmm. That might be confusing for the users later on.

Offline igeoffi

  • Jr. Member
  • **
  • Posts: 27
Re: A pretty "Change Password" patch/module for Roundcube
« Reply #6 on: July 03, 2006, 01:01:46 AM »
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

  • Guest
Re: A pretty "Change Password" patch/module for Roundcube
« Reply #7 on: July 03, 2006, 01:41:25 AM »
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.

Offline rjswilson

  • Newbie
  • *
  • Posts: 3
Re: A pretty "Change Password" patch/module for Roundcube
« Reply #8 on: July 03, 2006, 11:24:17 AM »
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

  • Guest
Re: A pretty "Change Password" patch/module for Roundcube
« Reply #9 on: July 04, 2006, 12:28:31 AM »
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?

Offline zwone

  • Newbie
  • *
  • Posts: 1
Re: A pretty "Change Password" patch/module for Roundcube
« Reply #10 on: July 04, 2006, 04:24:45 AM »
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"...


Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: A pretty "Change Password" patch/module for Roundcube
« Reply #11 on: July 04, 2006, 04:55:12 AM »
I like this! I wil be good for RC ;)

oslad

  • Guest
Re: A pretty "Change Password" patch/module for Roundcube
« Reply #12 on: July 04, 2006, 10:11:37 AM »
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:

Offline simoesp

  • Jr. Member
  • **
  • Posts: 46
Re: A pretty "Change Password" patch/module for Roundcube
« Reply #13 on: July 05, 2006, 11:47:57 AM »
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

  • Guest
Re: A pretty "Change Password" patch/module for Roundcube
« Reply #14 on: July 05, 2006, 09:04:31 PM »
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.