Status: New
Owner: ----
New issue 1220 by javier.a...@gmail.com: mysql authentication with sha512
passwords
http://code.google.com/p/cherokee/issues/detail?id=1220
Drupal 7 uses sha512 passwords
I'm using Apache, so i tried with mod_auth_mysql, but it does not supports
sha512.
I can switch to any webserver that handles sha512 for auth... so please
implement it on cherokee ?
Thanks!
_______________________________________________
Cherokee-dev mailing list
Cherokee-
http://lists.octality.com/listinfo/cherokee-dev
)
Updates:
Status: WaitingQA
Owner: alobbs
Labels: Type-Enhancement Priority-Medium OpSys-All Component-Logic
Comment #1 on issue 1220 by alobbs: mysql authentication with sha512
passwords
http://code.google.com/p/cherokee/issues/detail?id=1220
svn.cherokee-project.com/changeset/6752 implemented it.
Please give it a try and let me know how it goes.
_______________________________________________
Cherokee-dev mailing list
Cherokee-
http://lists.octality.com/listinfo/cherokee-dev
)
Comment #2 on issue 1220 by alobbs: mysql authentication with sha512
passwords
http://code.google.com/p/cherokee/issues/detail?id=1220
svn.cherokee-project.com/changeset/6757 implemented the option in
Cherokee-admin.
_______________________________________________
Cherokee-dev mailing list
Cherokee-
http://lists.octality.com/listinfo/cherokee-dev
)
Comment #3 on issue 1220 by javier.a...@gmail.com: mysql authentication
with sha512 passwords
http://code.google.com/p/cherokee/issues/detail?id=1220
Hola Alvaro! (soy Argentino, te escribo en ingles para respetar al resto
del mundo que lee esto!)
I've just tested it, and is not working. I enter user & pass, and it tries
again and again.
If there is some way i can help to debug it, please tell me.
_______________________________________________
Cherokee-dev mailing list
Cherokee-
http://lists.octality.com/listinfo/cherokee-dev
)
Comment #4 on issue 1220 by javier.a...@gmail.com: mysql authentication
with sha512 passwords
http://code.google.com/p/cherokee/issues/detail?id=1220
Maybe the problem is really on how Drupal 7 stores passwords (encoded as
base64) ?
I've tried to create base64 functions on my drupal db
(http://wi-fizzle.com/downloads/base64.sql)
Then using the following query on cherokee mysql auth settings:
SELECT BASE64_DECODE(pass) FROM users WHERE name = '${user}'
But i had no luck.
I dont have the expertise to solve this. Any ideas ?
_______________________________________________
Cherokee-dev mailing list
Cherokee-
http://lists.octality.com/listinfo/cherokee-dev
)
Comment #5 on issue 1220 by javier.a...@gmail.com: mysql authentication
with sha512 passwords
http://code.google.com/p/cherokee/issues/detail?id=1220
I have been thinking. Would'nt be nice to have the feature/possibility to
authenticate a user with, for example, a given PHP function? That way, i
can code the function to access the MySQL database, and check password
(even using D7 code itself) with any given hash or encoding it has!
I'm trying to get my site working soon, so that is why i'm looking for
possibilities.
_______________________________________________
Cherokee-dev mailing list
Cherokee-
http://lists.octality.com/listinfo/cherokee-dev
)
Comment #7 on issue 1220 by alobbs: mysql authentication with sha512
passwords
http://code.google.com/p/cherokee/issues/detail?id=1220
Check if the hash prefix has something to do with the problem
("$S$", "$P$", etc)..
_______________________________________________
Cherokee-dev mailing list
Cherokee-
http://lists.octality.com/listinfo/cherokee-dev
)
Comment #8 on issue 1220 by javier.a...@gmail.com: mysql authentication
with sha512 passwords
http://code.google.com/p/cherokee/issues/detail?id=1220
I`ve tried this:
SELECT BASE64_DECODE(SUBSTRING(pass,4)) FROM users WHERE name = '${user}'
No luck. Maybe i must take time to look at internals of D7 to make it work.
Thanks for your time Alvaro! :)
_______________________________________________
Cherokee-dev mailing list
Cherokee-
http://lists.octality.com/listinfo/cherokee-dev
)
Comment #9 on issue 1220 by javier.a...@gmail.com: mysql authentication
with sha512 passwords
http://code.google.com/p/cherokee/issues/detail?id=1220
I've looked at D7 code, and it hashes multiple times with a 'salt', so i
think comment 5 is the best approach i can think of. It is possible to
implement that in Cherokee Alvaro?
_______________________________________________
Cherokee-dev mailing list
Cherokee-
http://lists.octality.com/listinfo/cherokee-dev
)