• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2812
  • 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.
  • 2
1 Solution
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?
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.
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
if (!empty($_POST['_pass']))

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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