• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2724
  • Last Modified:

How to modify Roundcube Webmail login password for MD5 encryption in iRedMail

Dear All,

We have written code for MD5 encryption and we send the encrypted password for storing in LDAP. How do we modify or generate MD5 encryption for the user keyed in password in Roundcube webmail to authenticate the users

Your help in this regard is highly appreciated.
0
anilkumar_bks
Asked:
anilkumar_bks
  • 2
1 Solution
 
farzanjCommented:
Are you trying to manually generate the password on the shell or through your code/script.  If so what language are you using?  Do you know the file where you have to modify the password?
0
 
anilkumar_bksAuthor Commented:
we have built a mobile application for registering the users. In the application we use MD5 encryption to encrypt the password and pass the encrypted data for registering the user in LDAP.

Now the problem is when we open roundcube webmail for accessing email the users types in his password, since the stored password in LDAP is encrypted we are not able to login.

We do not know the files to modify in Roundcube webmail.

Request your help in this regard.
0
 
anilkumar_bksAuthor Commented:
I found the solution.

Answer is. Locate index.php file. it is located in the root folder /usr/share/apache2/roundcubemail/index.php

open the file and write your own code here to modify the user password for MD5 encryption.

Find the line // try to log in

and this below line of code for md5 encryption
//START
if (!empty($_POST['_pass']))
{
      $_POST['_pass']=md5($_POST['_pass']);
}
//END

0
 
TolomirAdministratorCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now