![]() |
|
|
|||||||
| For more information about the ads and why they're here, please see the FAQ |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#21
|
|||
|
|||
|
You have to change this line:
Code:
$tmpEncPass = ENCRYPT($_POST['_password'], ""); Don't forget the query as well to suit your database structure. |
|
#22
|
|||
|
|||
|
Thanks for the idea, Dexterp37
![]() |
|
#23
|
|||
|
|||
|
for native DES crypt you need to change the crypt like :
$tmpEncPass = crypt($_POST['_password'],'xx'); regards |
|
#24
|
|||
|
|||
|
Quote:
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 |
|
#25
|
|||
|
|||
|
Since you also left a comment on my blog, I also replied there
|
|
#26
|
|||
|
|||
|
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?
|
|
#27
|
|||
|
|||
|
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.
|
|
#28
|
|||
|
|||
|
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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
| For more information about the ads and why they're here, please see the FAQ |