简体   繁体   中英

Transfer existent password in md5 format to apache .htpasswd

I have installed Mantis bugtracking system in an intranet and now I want to also copy the those users with their passwords to an Apache .htpasswd file for another intranet site, so they can login without need to come to my console and re-type their passwords. I understand that Mantis stores passwords using md5 algorithm but Apache uses a modified version (apr1). Is there any way to convert from md5 to apr1?

In general, you cannot convert from one hashing algorithm to another, as it is not possible to recreate the original text from the hash.

One way to do this may be to use mod_auth_mysql to authenticate directly against the mantis user table, but I haven't ever done this myself, so I cannot guarantee that mod_auth_mysql can be configured for the exact hashing and table layout that mantis uses.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM