|
|
*sigh* admin / password / crypt() / ignorance
- Announcements Posted by jason (Wednesday June 14 2000 @ 03:05PM EDT) views: 539 |
The problem with some users not being to login to admin has finally been solved. I apologize that so many have had to help troubleshoot/debug this to get it working on their system. The problem was a result of ignorance, a huge blunder on my part.
I was not using php's crypt() correctly AT ALL. Instead of checking for which encryption methods were availble of a system, and encrypting accordingly, I was using using the string "CRYPT_BLOWFISH" as the salt. Lame eh. I must've been skimming the docs a page a second. CRYPT_BLOWFISH is a constant that returns either 0 or 1 depending of whether or not that particular system supports it. What this was doing was setting the salt to either 0 or 1. I develop on Linux, which by default does not support blowfish, so the default password that was shipped with phpWebLog was set with a salt of 0. This means that this would work fine on any system that didn't support blowfish. However, as I saw more people using BSD having problems, whala. BSD is well know for their all-encompassing encryption support.
I learned my lesson. =]
Jason
|
|
By philip (Wednesday June 14 2000 @ 03:15PM EDT)
|
thank god, i thought i was losing my mind!
|
[ reply | parent ]
|
By Mike (Wednesday June 14 2000 @ 06:15PM EDT)
|
Whew, now that thats overwith ;)
Finally good to see it end!
|
[ reply | parent ]
|
By X-Gote (Thursday June 15 2000 @ 04:55PM EDT)
|
Your still the man!
|
[ reply | parent ]
|
By Anonymous (Thursday June 15 2000 @ 05:31PM EDT)
|
Finnaly
|
[ reply | parent ]
|
By c (Thursday October 05 2000 @ 12:53AM EDT)
|
ccccccccccccccccccccccccc
|
[ reply | parent ]
|
By d (Thursday October 05 2000 @ 12:53AM EDT)
|
dddddddddddddddddddddddddddddddddd
|
[ reply | parent ]
|
|
|
|