Author Topic: change password patch for v0.2-alpha with HMAILSERVER  (Read 5008 times)

Offline rmc2000

  • Jr. Member
  • **
  • Posts: 40
change password patch for v0.2-alpha with HMAILSERVER
« on: June 12, 2008, 09:38:17 AM »
Anyone can make a patch with only change password patch that works with HMAILSERVER and last version of roundcube v0.2-alpha ?

Thanksss

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
change password patch for v0.2-alpha with HMAILSERVER
« Reply #1 on: August 02, 2008, 03:03:17 AM »
Do you mean these patches?

http://www.roundcubeforum.net/showthread.php?t=2503&page=3&highlight=hmailserver

If so, adjust password en-/decryption method in passwd.inc

Code: [Select]

function rcmail_save_passwd($curpasswd, $newpasswd){
 global $CONFIG, $_SESSION, $DB, $RCMAIL;
  $hCOMApp = new COM("hMailServer.Application");
  $obAccount = $hCOMApp->Authenticate($_SESSION['username'], $RCMAIL->decrypt_passwd($_SESSION['password']));
  if ($obAccount->ValidatePassword($curpasswd)) {
    $obAccount->Password = $newpasswd;
    $obAccount->Save();
    $_SESSION['password'] = $RCMAIL->encrypt_passwd($newpasswd);
    return(1);
  }
}
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline piero.peruzzi

  • Newbie
  • *
  • Posts: 1
change password patch for v0.2-alpha with HMAILSERVER
« Reply #2 on: April 11, 2009, 04:59:15 AM »
Hi everybody,

I'm new on this forum and i'm very poor on php.
Following your guidelines to set up a password-change function on Hmailserver , i went into troubles.

Can someone provide me a detailed guide to enable this funcyion on my system?

W2008 enterprise
mysql 5.1
hmailserver 4.4.3-b285
roundcube 0.2.1

all on the same machine

Please help me, please!

Thank you

Piero

Offline SimonSez07

  • Newbie
  • *
  • Posts: 7
Pasword Change Patch for 0.2.2
« Reply #3 on: June 22, 2009, 12:45:24 AM »
As posted here, there is a new version of this patch. Likely the reason it was not working with your installation is because of your version of RoundCube. The old patch was *only* for v0.1.1 and the new version is only for v0.2.2.

Offline MSATHAAA444

  • Newbie
  • *
  • Posts: 1
change password patch for v0.3.1 with HMAILSERVER
« Reply #4 on: January 04, 2010, 11:27:30 AM »
Does anyone have the patch for the latest release v0.3.1 of Roundcube with hMailServer for the change password? If so please post it immediately as I need it asap.
« Last Edit: January 04, 2010, 11:31:53 AM by MSATHAAA444 »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,584
    • http://SKaero.com/
change password patch for v0.2-alpha with HMAILSERVER
« Reply #5 on: January 04, 2010, 11:31:11 AM »
This is now depricated use the hmail_password plugin from rosali you can find it here: http://code.google.com/p/myroundcube/