Hello,
I recently copied an established installation of Dokuwiki 2008-05-05 from a public Linux server to a local MAMP development server (for some testing purposes) and have come across a problem that I can't quite understand. So I am wondering if someone may be able to point me in the right direction.
On the local MAMP copy everything "runs" quite fine, but it appears that all existing logins fail. Any login I try (I tried several of the existing user/pass combinations that I personally know) simple results in the "Sorry, username or password was wrong" error. I have double-checked file permissions, double-checked that conf/users.auth.php was copied exactly as it exists on the public server, and double-checked all the points noted at
http://www.dokuwiki.org/faq:servermove
What's strange is that if I register a new user on the local MAMP copy, that user is properly created, and I can login fine with the password Dokuwiki emails. It's only the
existing user accounts that can't be used with this local copy of the installation.
To test further, I registered a new user on the MAMP copy and then manually edited users.auth.php to make that new user a member of the "admin" group (the only way I can login as a superuser). I then logged-in as that new user, and proceeded to use graphical user manager to change the password of an existing user. Only after this was I able to successfully authenticate as that existing user. It is almost as if the password hashes are being created/read differently on each server, even though users.auth.php (and all other system files) were copied identically.
The conf option 'passcrypt' is not set, so I believe smd5 should be in use on both copies. Is it possible that one server could process the same smd5 hash differently than another? Or perhaps I'm just missing some other crucial aspect of the authentication concept that's related to moving/copying a Dokuwiki installation?
Any help is greatly appreciated. I often shuffle Dokuwiki installations between servers, and want to be sure I understand what is happening here.
Best,
Ryan