Re: [Proftpd-user] authenticate against password in mysql, created by password_hash function in php
Ian via Proftp-user <[email protected]>
| Newsgroups | gmane.network.proftpd.user |
|---|---|
| Message-ID | <[email protected]> |
Hello Catscrash,
http://www.proftpd.org/docs/contrib/mod_sql_passwd.html -- looks like it has support for SCRYPT but not BCRYPT. We have successfully setup mod_sql_password / scrypt running against postgres. We also looked at bcrypt initially but never got it to work.
On Tuesday, March 20, 2018, 2:00:43 PM PDT, Catscrash <[email protected]> wrote:
Hi,
is it possible to authenticate proftpd against a mysql table, filled
with passwords created by the php password_hash function? mod_sql or
mod_sql_password don't seem to have a fitting option, but maybe I missed
something?
http://de2.php.net/manual/en/function.password-hash.php - password will
look something like
"$2y$10$.vGA1O9wmRjrwAVXD98HNOgsNpDczlqm3Jq7KnEd1rVAGv3Fykk1a"
2y is the marker for bcrypt algorithm, 10 is cost, 22 characters after
last $ are salt, then hash
Thanks for any help
best regards!
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ProFTPD Users List <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
ProFTPD Users List <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html