Roundcube Community Forum

 

change password patch for v0.2-alpha with HMAILSERVER

Started by rmc2000, June 12, 2008, 09:38:17 AM

Previous topic - Next topic

rmc2000

Anyone can make a patch with only change password patch that works with HMAILSERVER and last version of roundcube v0.2-alpha ?

Thanksss

rosali

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


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

piero.peruzzi

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

SimonSez07

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.

MSATHAAA444

#4
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.

SKaero

This is now depricated use the hmail_password plugin from rosali you can find it here: http://code.google.com/p/myroundcube/