Author Topic: New File Added: Plesk Password Change  (Read 15726 times)

Offline mromero

  • Jr. Member
  • **
  • Posts: 20
New File Added: Plesk Password Change
« on: May 18, 2008, 01:24:32 PM »
Downloads: A new file has been added by  mromero:

Plesk Password Change

UPDATE: This release is for RoundCube v0.1.1

I am pleased to release a modification to the cPanel patch released by Heritz to make it Plesk compatible. I have developed it work on the same machine that the IMAP server is running on, and have only tested it on Plesk 8.3 for Linux.

For instructions on how to setup Roundcube to be the default webmail client for Plesk check out this post: http://roundcubeforum.net/forum/index.php?topic=1667.0 (Requires root access)
Original CPanel Patch by Heritz: http://roundcubeforum.net/forum/index.php?topic=711.0

How to install:
1. Download the patch from the first link above.
2. Extract the uploaded files on your local hard drive, or into a temp directory on your server
3. Upload / move the files to the extracted files to your Roundcube installation directory, replacing as necessary.

How to install (Advanced, *nix):
Requirements: FTP & SSH access, info-zip (or other unzip utility)

1. Upload the .zip into your roundcube installation directory
2. SSH into your server
3. cd /my/install/dir (replace /my/install/dir with the base directory of your roundcube installation)
4. unzip -o roundcubemail-0.1.1_patch_Plesk.zip

Standard Legal Notice: I make absolutely, positively NO guarantee that this patch will work with your server. I am not responsible for any damages that may result from the installation, or utilization of this patch to your Roundcube installation or your server. USE AT YOUR OWN RISK.
« Last Edit: May 18, 2008, 06:37:19 PM by mromero »

Offline mromero

  • Jr. Member
  • **
  • Posts: 20
New File Added: Plesk Password Change
« Reply #1 on: May 18, 2008, 01:40:57 PM »

Offline crusher

  • Jr. Member
  • **
  • Posts: 24
    • http://crusher.untergrund.net
New File Added: Plesk Password Change
« Reply #2 on: May 29, 2008, 05:30:44 PM »
thanks for doing this great addon!

but unfortunalety it says "current password incorrect"
password is 100% correct as i can successfully login with it.

any ideas?
i'm using plesk 8.4.0 & rc 0.1.1

kind regards
crusher

Offline mromero

  • Jr. Member
  • **
  • Posts: 20
New File Added: Plesk Password Change
« Reply #3 on: May 29, 2008, 06:16:32 PM »
Did you upgrade your Plesk install before after you applied the patch? Also what OS is your server running.

Offline nickfromdc

  • Newbie
  • *
  • Posts: 2
New File Added: Plesk Password Change
« Reply #4 on: May 30, 2008, 02:19:24 AM »
I was having the same issue.  It turned out to be a problem with my poppassd authentication system.  After I made the change, I had no problems at all.

Thanks for the great plugin!

Offline crusher

  • Jr. Member
  • **
  • Posts: 24
    • http://crusher.untergrund.net
New File Added: Plesk Password Change
« Reply #5 on: May 30, 2008, 03:51:48 AM »
Quote from: mromero;12283
Did you upgrade your Plesk install before after you applied the patch? Also what OS is your server running.

Yes, Upgrade to 8.4.0 was done before applying the patch. I'm on OpenSuse 10.1.

Quote from: nickfromdc;12283
After I made the change, I had no problems at all.

What change did you exactly mean?

Edit: After realizing that first there was no poppassd installed i dit that. Now I got:

whereis poppassd
poppassd: /usr/sbin/poppassd
---
telnet localhost 106
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
200 h1393804 poppassd v1.6a hello, who are you?

500 Username required.
Connection closed by foreign host.

So I think poppassd is up and running now.
But further on I can't change password under RC. Same Error "Current Password incorrect" :(
« Last Edit: May 30, 2008, 06:07:30 AM by crusher »

Offline mromero

  • Jr. Member
  • **
  • Posts: 20
New File Added: Plesk Password Change
« Reply #6 on: May 30, 2008, 10:29:13 AM »
I am wondering if it is because poppassd was installed after the mailboxes were created. Have you test to see if you can change a password manually via telnet?

In case you need instructions:

telnet localhost 106
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
200 poppassd hello, who are you?
user myfullemail@mydomain.com
200 Your password please.
pass myOldPassword
200 Your new password please.
newpass myNewPassword
200 Password changed, thank-you.

Offline crusher

  • Jr. Member
  • **
  • Posts: 24
    • http://crusher.untergrund.net
New File Added: Plesk Password Change
« Reply #7 on: May 31, 2008, 05:37:48 AM »
Hmm I can't change the password manually. Even for new created mailbox.

telnet localhost 106
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
200 h1393804 poppassd v1.6a hello, who are you?
test@schindler-net.org
500 Username required.
Connection closed by foreign host.

I installed poppassd as described here -> http://blog.irwan.name/?p=228

I really don't know what's wrong.

If you have no more idea, I guess I have to restore a backup with default Horde installation.
I think poppassd is installed there because Horde does use the same technique, does it?
Probably poppassd got deinstalled when I deinstalled horde packages (without knowing Plesk update will install it again) and new installation of poppassd as mentioned above doesn't work for any reason.

Offline mromero

  • Jr. Member
  • **
  • Posts: 20
New File Added: Plesk Password Change
« Reply #8 on: May 31, 2008, 09:09:11 AM »
You have to type user in front of the username, it should be:
user test@schindler-net.org

EDIT: Also I am curious as to what Horde used to change your passwords, in your old horde directory look in the /passwd/config/backends.php file and look for something similar to :

(Mine is poppassd, yours will probably be different)
$backends['poppassd'] = array(
    'name' => 'Poppassd Server',
    'preferred' => '',
    'password policy' => array(),
    'driver' => 'poppassd',
    'params' => array(
        'host' => 'localhost',
        'port' => 106
    )
);
« Last Edit: May 31, 2008, 09:18:23 AM by mromero »

Offline crusher

  • Jr. Member
  • **
  • Posts: 24
    • http://crusher.untergrund.net
New File Added: Plesk Password Change
« Reply #9 on: June 01, 2008, 06:46:39 AM »
I completely reinstalled the server. Poppassd is working now. I can change password manually through telnet and so in horde (backends.php: poppassd).
But RC still refuses to change password with alert "Current Password incorrect".
Firewall setting is OK I think as it allows all connections for changing mail password: /usr/sbin/iptables -A INPUT -p tcp --dport 106 -j ACCEPT
It's very strange that horde now is able to change password but RC isn't as for both use poppassd on port 106...

What can the problem now be? I go crazy with this :(
« Last Edit: June 02, 2008, 02:01:38 PM by crusher »

Offline mromero

  • Jr. Member
  • **
  • Posts: 20
New File Added: Plesk Password Change
« Reply #10 on: June 02, 2008, 03:40:29 PM »
Cursher I have not forgot about you, but my server is currently down and my current efforts are to getting that back online. Once I have free time I will respond back.

Offline crusher

  • Jr. Member
  • **
  • Posts: 24
    • http://crusher.untergrund.net
New File Added: Plesk Password Change
« Reply #11 on: June 02, 2008, 04:32:42 PM »
Sure, that's clear.
Good Luck in getting your server back online!

Offline crusher

  • Jr. Member
  • **
  • Posts: 24
    • http://crusher.untergrund.net
New File Added: Plesk Password Change
« Reply #12 on: June 03, 2008, 04:12:08 AM »
I found the problem now! :D

I set up my qmail to accept short login names. After changing to use complete mail@domain.tld names and editing main.inc.php to add my domain after username it's working now. Thanks for your help, mromero!

Maybe this is something to optimize your code or add it to requirements.

Offline mromero

  • Jr. Member
  • **
  • Posts: 20
New File Added: Plesk Password Change
« Reply #13 on: June 04, 2008, 02:38:02 PM »
Thanks Crusher. I will do some error checking, and make the error messages more descriptive.

Offline fred.anthony

  • Newbie
  • *
  • Posts: 1
New File Added: Plesk Password Change
« Reply #14 on: July 04, 2008, 11:29:20 AM »
Hi, installation goes fine, when I go to the setting I see the tab for change password, but when I click I see only the content in the preferences tab. The link when I hover over the tab is http://virtualdevl.com/webmail/?_task=settings&_action=passwd#
Thanks.
Fred.