Current time: 01-25-2022, 10:10 AM Hello There, Guest! (LoginRegister)


Post Reply 
[HowTo] Password changer for Roundcube Webmail
Author Message
elitepilot Offline
Member
***

Posts: 352
Joined: Feb 2008
Reputation: 0
Post: #21
RE: Password changer for Roundcube Webmail
das letzte release vor der alpha.
09-02-2008 03:04 AM
Find all posts by this user Quote this message in a reply
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #22
RE: Password changer for Roundcube Webmail
http://sourceforge.net/project/showfiles..._id=589888
09-02-2008 03:27 AM
Find all posts by this user Quote this message in a reply
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #23
RE: Password changer for Roundcube Webmail
I have promised to update the howto, when the beta is released - that's the case now. But because I was absent here for some weeks, I have to get up to date first. I already have read something about changes in the database and the mail passwords, so I have to check this first.
09-28-2008 07:25 AM
Find all posts by this user Quote this message in a reply
elitepilot Offline
Member
***

Posts: 352
Joined: Feb 2008
Reputation: 0
Post: #24
RE: Password changer for Roundcube Webmail
Have you updatet the Howto for the beta, which is shipped out since 21.09.08?
10-12-2008 11:21 PM
Find all posts by this user Quote this message in a reply
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #25
RE: Password changer for Roundcube Webmail
Not yet. Sorry, but I have no time at the moment and I suppose that it is not that easy to update it this time, because of the database changes in ispCP.
(This post was last modified: 10-12-2008 11:45 PM by Cube.)
10-12-2008 11:44 PM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #26
RE: Password changer for Roundcube Webmail
modify
Code:
// Password MOD
if (isset($_POST['_password']) && $_POST['_password']!="")
  {
  $tmpPass = $_POST['_password'];
  $tmpUser = $_SESSION['username'];

  mysql_query("UPDATE ispcp.mail_users SET mail_pass='$tmpPass', status='change' WHERE mail_addr='$tmpUser'")
    or die(mysql_error());

  send_request();

  $_SESSION['password'] = encrypt_passwd($_POST['_password']);
  }
// End Password MOD
in
Code:
// Password MOD
if (isset($_POST['_password']) && $_POST['_password']!="")
  {
  $tmpPass = $_POST['_password'];
  $tmpUser = $_SESSION['username'];

  mysql_query("UPDATE ispcp.mail_users SET mail_pass='".encrypt_db_password($tmpPass)."', status='change' WHERE mail_addr='$tmpUser'")
    or die(mysql_error());

  send_request();

  $_SESSION['password'] = encrypt_passwd($_POST['_password']);
  }
// End Password MOD
did not tested but it should work.
10-13-2008 12:07 AM
Visit this user's website Find all posts by this user Quote this message in a reply
elitepilot Offline
Member
***

Posts: 352
Joined: Feb 2008
Reputation: 0
Post: #27
RE: Password changer for Roundcube Webmail
you mean Database Changes in Trunk right? Cause of mailuserpasswordencryption.
10-13-2008 01:19 AM
Find all posts by this user Quote this message in a reply
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #28
RE: Password changer for Roundcube Webmail
Quote:you mean Database Changes in Trunk right? Cause of mailuserpasswordencryption.
Exactly.

Thanks sci2tech. I will test it.
10-13-2008 06:27 AM
Find all posts by this user Quote this message in a reply
Trueffelwurm Offline


Posts: 2
Joined: May 2008
Reputation: 0
Post: #29
RE: Password changer for Roundcube Webmail
OK, I got it running with password encryption!

Here are the parts in program/steps/settings/save_prefs.inc:
At the beginning (after comment-header) add:
Code:
define('INCLUDEPATH', '../../include/');
require(INCLUDEPATH . '/ispcp-config.php');
require(INCLUDEPATH . '/ispcp-db-keys.php');
require(INCLUDEPATH . '/ispcp-functions.php');

After
Code:
'preview_pane' => isset($_POST['_preview_pane']) ? TRUE : FALSE,
add
Code:
// Password MOD
  'password'  => isset($_POST['_password']) ? TRUE : FALSE,
// End Password MOD
(not changed!)

And after
Code:
$a_user_prefs[$p] = $CONFIG[$p];
add
Code:
// Password MOD
if (isset($_POST['_password']) && $_POST['_password']!="")
  {
  $tmpPass = $_POST['_password'];
  $tmpUser = $_SESSION['username'];
  $encPass = encrypt_db_password($tmpPass);

  mysql_query("UPDATE ispcp.mail_users SET mail_pass='$encPass', status='change' WHERE mail_addr='$tmpUser'")
   or die(mysql_error());

  send_request();

  $_SESSION['password'] = $RCMAIL->encrypt_passwd($_POST['_password']);
  }
// End Password MOD
10-24-2008 08:20 PM
Find all posts by this user Quote this message in a reply
bigwavesurfer Offline
Newbie
*

Posts: 7
Joined: Mar 2008
Reputation: 0
Post: #30
RE: [HowTo] Password changer for Roundcube Webmail
Hi!

Is there any tutorial how to integrate the Password changer in the new 0.2 stable of Roundcube. I tried all the suggestions in this thread, but -damn- it doesn`t work...

THX, Tobi
01-09-2009 08:50 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)