Letractively / rubycas-server

Automatically exported from code.google.com/p/rubycas-server
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Enable support for MD5 authenticator #47

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I wanted to connect to a user database that stored the passwords via MD5
hash. In my scenario I was trying to hook up to a Drupal users table.

I'm submitting a patch to enable MD5 support.

Files:

* authenticator_md5.patch (SVN diff - trunk)
* sql.rb (added a single method: get_password)
* sql_encrypted_md5.rb (overwrote get_password)

Thanks for the work on the ruby cas server - very easy to use and I was up
and running very quickly.

Original issue reported on code.google.com by malc...@gmail.com on 12 Jun 2008 at 3:31

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks! I'll take a look at the patch.

Original comment by matt.zuk...@gmail.com on 17 Jun 2008 at 6:54

GoogleCodeExporter commented 8 years ago
Malcolm, I've added your MD5 authenticator as of revision 299.

I renamed it to 'sql_md5', as I'm a bit reluctant to call it encrypted to avoid
confusion with the other encrypted authenticator.

I also simplified the code a bit from your version to avoid introducing more
indirection in the SQL authenticator.

Thanks for the contribution!

Original comment by matt.zuk...@gmail.com on 18 Jun 2008 at 6:26