[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jffnms-users
Subject:    [jffnms-users] Do your passwords not work
From:       Craig Small <csmall () enc ! com ! au>
Date:       2011-04-19 13:10:10
Message-ID: 20110419131010.GA17616 () enc ! com ! au
[Download RAW message or body]

I found an interesting little quirk with the PHP crypt function. This
function encrypts your admin and user passwords for JFFNMS.

Initially this used to produce a 8 character or 32 character hash which
fitted within the 50 character database field.  It seems that some
installations of PHP use better types of crypting which is good.
Unfortunately the resulting hash is 96 characters long. This means the
hash didn't fit into the database so it never matches.

You'll see this problem when you update your password and then can never
login with that user. The fix is easy:

ALTER TABLE `auth` MODIFY `passwd` varchar(200);

Put that into you mysql command line and your passwords work.

 - Craig
-- 
Craig Small VK2XLZ    http://www.enc.com.au/       csmall at : enc.com.au
Debian GNU/Linux      http://www.debian.org/       csmall at : debian.org
GPG fingerprint:       1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic