[HowTo] Password changer for Roundcube Webmail - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Contributions Area (/forum-40.html) +--- Forum: Howtos (/forum-41.html) +--- Thread: [HowTo] Password changer for Roundcube Webmail (/thread-2744.html) |
[HowTo] Password changer for Roundcube Webmail - Cube - 03-15-2008 11:22 PM This HowTo describes how to implement a password changer into Roundcube. How it works With this mod RC will set the new pasword directly in the ispcp database and call the ispCP-daemon to update the configs. Requirements - a working Roundcube (version 0.1.1) which is installed in ispCP's tools-directory (Please do not ask about how to install Roundcube in this thread.) - ispCP RC4 or later (if you upgraded to RC4 from an older version you have to set the database revision to 1 (mysql -> ispcp -> config) and check for database updates in the GUI (that's because of a bug in the update-script) / mail_addr should not be empty) I assume that the roundcube-directory and the roundcube-user are both called roundcube. In /var/www/ispcp/gui/tools/roundcube/program/steps/settings/func.inc before line 198 Code: $out .= "\n</table>$form_end"; Code: // Password MOD Code: require '../../include/ispcp-functions.php'; After approximately line 31 Code: 'preview_pane' => isset($_POST['_preview_pane']) ? TRUE : FALSE, Code: // Password MOD Code: $a_user_prefs[$p] = $CONFIG[$p]; Code: // Password MOD He will get only the minimum he needs: SELECT-privileges for mail_addr and UPDATE-privileges for mail_pass and status. You can do this with PMA or with the following SQL statements: Code: GRANT SELECT (`mail_addr`), UPDATE (`mail_pass`, `status`) ON `ispcp`.`mail_users` TO 'roundcube'@'localhost'; You can translate the "(empty = unchanged)" string to your default language or remove it - it should be intuitive enough. Test it! After a change you will lose your connection to the IMAP server and have to login again. Post improvements if you know some. I will merge them to a final HowTo in the docu. RE: Password changer for Roundcube Webmail - joximu - 03-15-2008 11:33 PM Caution: this will work only with newer ispCP version (where mail_addr is filled in) - I think not in RC3 - nightly somewhat around end of february... RE: Password changer for Roundcube Webmail - elitepilot - 03-16-2008 03:38 AM does not work for rc3 stable release? RE: Password changer for Roundcube Webmail - T0mcat - 03-16-2008 04:12 AM elitepilot Wrote:does not work for rc3 stable release? I'm running RC3, and this trick doesn't work for me But RC4 will be out soon, so it should work. RE: Password changer for Roundcube Webmail - elitepilot - 03-16-2008 04:27 AM can make it able for rc3? RE: Password changer for Roundcube Webmail - joximu - 03-16-2008 04:33 AM with a much more complicated sql statement... RE: Password changer for Roundcube Webmail - Cube - 03-16-2008 04:38 AM That's the reason why I made it for newer ispCP versions (at least revision 1024 from the end of February). RC4 should be released soon, so please wait for it, if you use RC3. RE: Password changer for Roundcube Webmail - gOOvER - 03-16-2008 04:39 AM elitepilot Wrote:can make it able for rc3? We don't need a Version for RC3. Rc4 is coming in the next few Days RE: Password changer for Roundcube Webmail - elitepilot - 03-16-2008 07:11 AM i hope the update from rc3 to rc4 will go without erros ^^ RE: Password changer for Roundcube Webmail - elitepilot - 03-18-2008 10:43 AM Hi, i installed ISPCP RC4 But and follow your Howto, but i can not change Passwords. mail_addr is empty in Database |