I have an installation of ProFTPd and I'm trying to link authentication to that of a remote database. I have everything configured correctly except for the password hashing. The password hashes are constructed by prepending the text md5
in front of the result of the md5 hash of the password concatenated with the username. So in SQL we can replicate an example of this hashing scheme:
SELECT 'md5' || MD5('stimpy' || 'ren')
gives
md5995dab9d6bdcd572f6b4caaf5399417f
That's pretty easy. What's not been easy thus far is to replicate this hashing in the proftpd.conf
file using the options available in mod_sql
and mod_sql_passwd
I'm at the point now where I'm digging through the source code to see if I can implement something that way. I'm hoping someone has a better idea!