#3 4.1 Password hash changed

closed-fixed
None
5
2005-02-25
2005-02-10
Anonymous
No

MySQL has changed the password hashing for scrambled
passwords in 4.1

Here are my changes to make it work.

diff mod_auth_mysql-2.8.1/mod_auth_mysql.c
new.mod_auth_mysql-2.8.1/mod_auth_mysql.c
950,951c950,958
< scrambled_sent_pw = PCALLOC(r->pool, 33);
< make_scrambled_password(scrambled_sent_pw,
sent_pw);
---
> /* pre-4.1 has diff hash len */
> /* alloc the max size 41 for >4.1 32 for pre */
> /* >4.1 has '*' as first char of hash */
> scrambled_sent_pw = PCALLOC(r->pool, 42);
> if (real_pw[0] == '*') {
> make_scrambled_password(scrambled_sent_pw,
sent_pw);
> }else{
>
make_scrambled_password_323(scrambled_sent_pw, sent_pw);
> }

It may be better to use the mysql_com.h def for
scrambled instead of the guessing at the max size if
they change it again.

Discussion

  • Jerry Stuckle

    Jerry Stuckle - 2005-02-15
    • assigned_to: nobody --> jstuckle
     
  • Jerry Stuckle

    Jerry Stuckle - 2005-02-15

    Logged In: YES
    user_id=1049703

    Thanks for the info. We'll get this fixed in the next release.

     
  • Jerry Stuckle

    Jerry Stuckle - 2005-02-25
    • status: open --> closed-fixed
     
  • Jerry Stuckle

    Jerry Stuckle - 2005-02-25

    Logged In: YES
    user_id=1049703

    This has been fixed in the 2.9.0 beta.

    Closing.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks