Roundcube Community Forum

Third Party Contributions => Old Style Plug-Ins => Topic started by: BoerbooM on October 12, 2006, 01:18:25 PM

Title: Change Password Patch for DirectAdmin installations
Post by: BoerbooM on October 12, 2006, 01:18:25 PM
I am glad to announce the Change Password Patch for DirectAdmin Installations. Since DirectAdmin servers hands out the option to change mail passwords webbased, I decided to make this patch to use the DirectAdmin features along with Roundcube. This patch is based in the standard release of Change Password Patch for cPanel Installations, not CVS mods applied.

(http://www.ingeniarte.com/images/rc-password.gif)

Feel free to give me any comments or suggestions you may have.

***

As you might have noticed by now, Im quite lazy... Thats why I just modified Heritz plugin and almost copied his post...
http://roundcubeforum.net/forum/index.php?topic=711.msg3155#msg3155 (http://roundcubeforum.net/forum/index.php?topic=711.msg3155#msg3155)

Hope you guys wont mind ;)

Peace 8)
Title: Re: Change Password Patch for DirectAdmin installations
Post by: silicom on November 04, 2006, 08:20:00 AM
Hi BoerbooM,

I applied your patch. Seems however, that I'm not getting it to work. When clicking on the password tab, I'm not getting the correct window (getting the settings window instead), although the password tab is the one being highlighted.

I've gone through the scripts, and can't figure it out. I'm using the latest SVN checkout, so the lines were a bit different, but as far as I can see, it should work.

Anyone gotten the same bug, or can confirm that it works on SVN build as of 4 Nov 06?
Title: Re: Change Password Patch for DirectAdmin installations
Post by: BoerbooM on November 05, 2006, 02:39:09 PM
If I got any time, I'll try to install the latest SVN tomorrow and check it out..
Title: Re: Change Password Patch for DirectAdmin installations
Post by: silicom on November 05, 2006, 05:59:40 PM
Quote from: BoerbooM
If I got any time, I'll try to install the latest SVN tomorrow and check it out..

Thanks! I'm just trying to figure out whether it's a compatibility issue/bug, or a version issue.
Title: Re: Change Password Patch for DirectAdmin installations
Post by: sandlizardz on November 19, 2006, 06:52:49 PM
Thanks for this patch. It is a lifesaver...lol
Title: Re: Change Password Patch for DirectAdmin installations
Post by: tnuz on November 27, 2006, 10:48:33 AM
Great feature! Thanx for that!

First I coundn't change any password.
After some digging around I found out that there is a hostname in passwd.inc that isn't mine ;)
So I changed passwd.inc

from:
    $da_host = 'ownzak.nl';
to:
    $da_host = 'localhost';

Now it's working ok.
Title: Re: Change Password Patch for DirectAdmin installations
Post by: kanari3 on November 28, 2006, 03:29:42 AM
Confirmed, had the same.
Geuss Boerboom made this
on a monday morning :P
Title: Re: Change Password Patch for DirectAdmin installations
Post by: BoerbooM on January 07, 2007, 08:50:21 PM
Updated...

It works with the 0.1-beta2 release
Dated: December 22, 2006

Mainly changed some typo's and line numbers. Nothing code based.

Still works fine for me!
Title: Re: Change Password Patch for DirectAdmin installations
Post by: 123123 on February 01, 2007, 05:23:04 AM
The pasword tab doesnt work, when i press on it - no action
Title: Re: Change Password Patch for DirectAdmin installations
Post by: brycem on February 01, 2007, 06:58:36 AM
i keep getting a message saying:

An Error Occured While Saving

can anyone help
Title: Re: Change Password Patch for DirectAdmin installations
Post by: IMcomGuy on March 14, 2007, 03:38:20 AM
I am getting this error as well. I have applied the patch exactly as instructed within the HowTo.txt file.

The password tab loads properly, but upon saving it fails. Is there some other option in DA we must enable to allow users to change their password outside of the DA interface? I am running DA v1.29.1. Any assistance would be greatly appreciated!

EDIT: I'm stupid, nevermind. Edited the passwd.inc file to my hostname, and bam, worked like a charm! Thanks for the outstanding utility for DA!
Title: Re: Change Password Patch for DirectAdmin installations
Post by: W0153R on October 17, 2007, 05:46:49 AM
For the latest svn-trunk version, do the following:
Instead of:
Quote
#
# Open: program/include/main.inc
#

# Find: (line: 1253)

    // USER SETTINGS

# After add:

    'userpasswd' => 'rcmail_passwd_form',

Do this:
Quote
#
# Open: program/steps/settings/func.inc
#

# Find: (line: 271)

// register UI objects
$OUTPUT->add_handlers(array(

# After add:

 'userpasswd' => 'rcmail_passwd_form',
Title: Re: Change Password Patch for DirectAdmin installations
Post by: syahzul on November 23, 2007, 07:04:56 AM
hi BoerbooM,

thank you for this patch. but it seems not working with roundcube 0.1 rc2. the password not change at all. do u have any suggestion?

thank you.
Title: Change Password Patch for DirectAdmin installations
Post by: Kyvill on June 12, 2008, 06:22:44 AM
Is it possible to re-code this plug-in so it is working perfect?
There are some problems occuring when coding it in 0.1.1

The problem is that the tabs aint working perfect. When you go on tab Password and want to go back to Preferences, you cant.
Also when changing password. when changed, you go to the preferences tab which looks like the Password tab (also not able to click any other tabs in the preferences)
Title: Change Password ROUNDCUBE
Post by: esteban on August 08, 2008, 03:42:35 PM
Good afternoon, could you help me please with the script or patch to apply to change password plugin in ROUNCUBE??

Thanks
Title: Change Password Patch for DirectAdmin installations
Post by: simphax on August 29, 2008, 01:15:12 PM
Update for 0.2a?
Title: Change Password Patch for DirectAdmin installations
Post by: Alexel75 on January 13, 2009, 09:23:54 PM
Quote from: silicom;3574
Hi BoerbooM,

I applied your patch. Seems however, that I'm not getting it to work. When clicking on the password tab, I'm not getting the correct window (getting the settings window instead), although the password tab is the one being highlighted.

I've gone through the scripts, and can't figure it out. I'm using the latest SVN checkout, so the lines were a bit different, but as far as I can see, it should work.

Anyone gotten the same bug, or can confirm that it works on SVN build as of 4 Nov 06?


   
What is SVN?
Title: Change Password Patch for DirectAdmin installations
Post by: rosali on January 14, 2009, 01:03:08 AM
SVN = Sub Version Number

/trunk ? RoundCube Webmail ? Trac (http://trac.roundcube.net/browser/trunk)
Title: Change Password Patch for DirectAdmin installations
Post by: youds on January 25, 2009, 09:55:59 AM
Thanks go to Nemesis02 for updating the cPanel addon to work with roundcube0.2stable without which this update wouldn't of been possible. Not from me anyway!!
And of course many thanks to BoerbooM for the original plugin

OK, so here's what I did.

I used Nemesis02's README to make the file alterations too:
Code: [Select]
index.php
program/js/app.js
program/localization/en_US/labels.inc
program/localization/en_US/messages.inc
program/localization/en_GB/labels.inc
program/localization/en_GB/messages.inc
skins/default/includes/settingstab.html


I also kept his password.html and password.inc, replacing the rcube_save_password function with the equivalent rcmail_save_passwd from BoerbooM's passwd.inc, then changed the code to use the encrypt_password function from in the new password.inc.
The httpsocket.php file from BoerbooM's original plugin hasn't changed.

I'll post the patch to the downloads section, follow the README for installation instructions

GOOD LUCK!!! :)
Title: Change Password Patch for DirectAdmin installations
Post by: youds on January 25, 2009, 02:05:42 PM
Download here:
RoundCube Webmail Forum - RoundCube Forum Community Downloads - Change Password for DirectAdmin / roundcube0.2stab (http://www.roundcubeforum.net/downloads/plugins-patches/3/change-password-directadmin-roundcube0-2stab-16/)
Title: Change Password Patch for DirectAdmin installations
Post by: doona on January 31, 2009, 05:36:05 PM
Mmmm... I can't download this file ? :(
Title: Change Password Patch for DirectAdmin installations
Post by: rosali on February 01, 2009, 01:03:24 AM
I have cross checked by logging in as rosali2, which is an account without any forum privileges. There are no problems with the download!
Title: Change Password Patch for DirectAdmin installations
Post by: dark on February 04, 2009, 02:30:39 AM
Hi all.
my version is 0.2stable
i downloaded RoundCube Webmail Forum - RoundCube Forum Community Downloads - Change Password for DirectAdmin / roundcube0.2stab (http://www.roundcubeforum.net/downloads/plugins-patches/3/change-password-directadmin-roundcube0-2stab-16/)
but when I enter my current, new passwords and click Save there's nothing happen
Please, help me!
Title: Re: Change Password Patch for DirectAdmin installations
Post by: waleed2169 on March 10, 2009, 03:44:11 AM
i cant find the line 328 in index.php
  and line: 1227 in program/include/main.inc
Title: Change Password Patch for DirectAdmin installations
Post by: camodeo on March 25, 2009, 12:58:12 PM
Someone could solve this problem?
When change the password, nothing happens.

Please Help !!!

Thanks
Title: Change Password Patch for DirectAdmin installations
Post by: caretaker on March 26, 2009, 08:59:59 AM
the same by my side.

After filling out the old and new password fields nothing happened.

Any suggestions?

BR


Here's the log file-output:

Quote
[26-Mar-2009 13:12:06] PHP Warning:  include(program/include/cpanel.php) [function.include]: failed to op
en stream: No such file or directory in /var/kunden/webs/stollis/roundcubemail/program/steps/settings/password.inc on line 27

[26-Mar-2009 13:12:06] PHP Warning:  include() [function.include]: Failed opening 'program/include/cpanel
.php' for inclusion (include_path='/var/kunden/webs/stollis/roundcubemail/:/var/kunden/webs/stollis/roundcubemail/program:/var/kunden/we
bs/stollis/roundcubemail/program/lib:/var/kunden/webs/stollis/roundcubemail/program/include:.:/usr/share/php:/usr/share/pear') in /var/k
unden/webs/stollis/roundcubemail/program/steps/settings/password.inc on line 27

[26-Mar-2009 13:12:13] PHP Warning:  include(program/include/cpanel.php) [function.include]: failed to op
en stream: No such file or directory in /var/kunden/webs/stollis/roundcubemail/program/steps/settings/password.inc on line 27

[26-Mar-2009 13:12:13] PHP Warning:  include() [function.include]: Failed opening 'program/include/cpanel
.php' for inclusion (include_path='/var/kunden/webs/stollis/roundcubemail/:/var/kunden/webs/stollis/roundcubemail/program:/var/kunden/we
bs/stollis/roundcubemail/program/lib:/var/kunden/webs/stollis/roundcubemail/program/include:.:/usr/share/php:/usr/share/pear') in /var/k
unden/webs/stollis/roundcubemail/program/steps/settings/password.inc on line 27

It seems that the file cpanel.php is missing.
I dont use cpanel - just the roundcubemail. (running with courier & postfix)
Title: Change Password Patch for DirectAdmin installations
Post by: yc3948 on April 30, 2009, 10:21:33 PM
can't download
Title: Change Password Patch for DirectAdmin installations
Post by: timreichhart on May 31, 2009, 11:25:42 PM
how would I install this if I dont use cpanel? and how I installed roundcube was by ubuntu package setup from command line.