Roundcube Community Forum

 

New File Added: Plesk Password Change

Started by mromero, May 18, 2008, 01:24:32 PM

Previous topic - Next topic

mromero

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.


crusher

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

mromero

Did you upgrade your Plesk install before after you applied the patch? Also what OS is your server running.

nickfromdc

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!

crusher

#5
Quote from: mromero;12283Did 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;12283After 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" :(

mromero

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 [email protected]
200 Your password please.
pass myOldPassword
200 Your new password please.
newpass myNewPassword
200 Password changed, thank-you.

crusher

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?
[email protected]
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.

mromero

#8
You have to type user in front of the username, it should be:
user [email protected]

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
    )
);

crusher

#9
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 :(

mromero

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.

crusher

Sure, that's clear.
Good Luck in getting your server back online!

crusher

I found the problem now! :D

I set up my qmail to accept short login names. After changing to use complete [email protected] 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.

mromero

Thanks Crusher. I will do some error checking, and make the error messages more descriptive.

fred.anthony

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.