Crazy problem with debian woody and crypt()
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Debian support > Debian Developers > Crazy problem with debian woody and crypt()




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Crazy problem with debian woody and crypt()  
Carsten Maul


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-25-04 10:55 PM

Hi,

I have a problem that really makes me crazy !

I want to use the libpam_mysql module. I have MD5 passwords stored in a
mysql table.
pam_mysql fetches the records correctly, but then it has to compare the
md5-hash from the table with the md5-hash created from the password
send to PAM.
pam_mysql uses the crypt() function to calculate the md5-hash from the
given password. But crypt() inside of pam_msql ALWAYS creates DES
hashes, even if the given salt is of the type $1$8charsalt$ (which
triggers crypt() to calculate a md5 hash), so the comparing of the
calculated hash and the retreived hash from the mysql table always
fails !

I first thought that perhaps woody crypt() only supports DES. But a
quick C programm showed that crypt() calculates the correct MD5-hash.
So woody crypt() works correctly, only inside of the pam_mysql context
it does not work. I donīt understand why.

I would be very pleased about any help, because I really have no clue
why this happens.

Carsten






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:05 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register