RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Third Party Contributions > Plug-Ins

For more information about the ads and why they're here, please see the FAQ
Reply
  #21  
Old 03-25-2008, 11:26 AM
Registered User
 
Join Date: Nov 2007
Posts: 10
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

You have to change this line:

Code:
$tmpEncPass = ENCRYPT($_POST['_password'], "");
In order to match the encryption you use to store your passwords in your database. If your passwords are stored as md5 hashes, you could use php native md5 function referenced here in PHP manual.

Don't forget the query as well to suit your database structure.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22  
Old 03-25-2008, 02:14 PM
Registered User
 
Join Date: Mar 2008
Posts: 5
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

Thanks for the idea, Dexterp37
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23  
Old 03-28-2008, 01:12 PM
Registered User
 
Join Date: Mar 2008
Posts: 1
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

for native DES crypt you need to change the crypt like :

$tmpEncPass = crypt($_POST['_password'],'xx');

regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24  
Old 04-05-2008, 10:25 AM
Registered User
 
Join Date: Jan 2008
Posts: 3
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

Quote:
Originally Posted by Dexterp37
I just applied this mod to 0.1stable, and it works flawlessly. I've attached the patch to this post. Let me know if it works, that's my first patch!



Hello,

I really like this plugin and I am not really a coder but I was wondering where do I get the specific info on the following:

1. YourEncryptionFunctionHERE
2. UPDATE CCC.TableWithPasswordHERE SET

I apologize for my ignorance on this matter. Thanks.

Martin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25  
Old 04-06-2008, 06:34 PM
Registered User
 
Join Date: Nov 2007
Posts: 10
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

Since you also left a comment on my blog, I also replied there
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26  
Old 04-11-2008, 04:07 AM
Registered User
 
Join Date: Apr 2008
Posts: 1
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

So, I'm new to roundcube, quick question, does a plugin already exist for mysql,exim,courier mail to change password (virtual user setup), or do I have to write my own? Basically, how would you do changepassword with roundcube given mysql,exim,courier mail virtual user setup? What I'm reading here are people are writing some bits of their own code, is this standard fair?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27  
Old 04-11-2008, 07:58 AM
Registered User
 
Join Date: Nov 2007
Posts: 10
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

Yes, sort of. AFAIK, there's no intention to bring change password functionality in roundcube because of the very different behavior each backend software has. The code I posted works directly on the underlying database to write password in it. You should be able to use it as well, if exim stores passwords in a database.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28  
Old 04-13-2008, 04:04 PM
Registered User
 
Join Date: Mar 2008
Posts: 5
Downloads: 0
Uploads: 0
Default Re: Change password postfix+courier+mysql

Hello boys

And Thanks for the ideas

How it would be possible to rewrite this md5 to native DES crypt (ENCRYPT) whit this script.

function rcmail_save_passwd($curpassword, $newpassword){
global $DB, $CONFIG, $OUTPUT;

$DB->query('select password from postfix.mailbox where username=\''.$_SESSION['username'].'\'');
$row = $DB->fetch_assoc();
$actualCryptedPassword = md5($curpassword);

if ($actualCryptedPassword != $row['password'])
return false;
else {//ok, we can proceed
$DB->query('update postfix.mailbox set password=\''.md5($newpassword).'\',modified=NOW() where username=\''.$_SESSION['username'].'\'');
if (!$DB->is_error()) {
$_SESSION['password'] = encrypt_passwd($newpassword); //save the new password in the session
return true;
} else
return false;

}
}

http://blog.julienwadin.be/index.php...dans-roundcube
-----------------------------------------------

Thank You
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 08:19 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community