My EnotifWiki has a working code for AutoLogin based on REMOTE_USER .

See http://developer.berlios.de/project/showfiles.php?group_id=4473

--Wikinaut mail 23:01, 22 March 2006 (UTC)Reply


Otheus: I am trying to apply your REMOTE_USER auto login/creation patch. I installed it on a clean copy of mediawiki to test it and it works fine (after making some slight tweaks per the discussion).

However, on applying it to a wiki already in production, I experience errors - namely, everything is inaccesible. I suspect that it is because I already had a user account on that wiki, and the passwords do not match up.

Everything? Even as a guest account?
  • I patched my code against 1.5.5. I think it worked correctly with 1.6.3a, but not sure.
  • Is your .htaccess set up correctly? Is REMOTE_USER being set by the web server? (check the access logs -- the username should be in the second field of every line).
  • Did you set the LocalSettings.php to include the extension? (Sorry if that's condescending)
  • If you DONT login, does IP access work? If not, you might have disabled that in LocalSettings.php
  • Finally -- I noticed a bug in one of the versions -- this might have been the one I sent in as a patch. Look at the extesion (Auth_remoteuser.php) and see if you find the following line outside of a function:
 $wgAuth = new Auth_remoteuser(); 
If not, then add it -- this could be what's wrong.
Email me -- otheus at gmail Otheus 22:20, 28 June 2006 (UTC)Reply

My question is this (since I cannot determine it from the code): when a new account is created (and subsequently when it is looked up and the login is attempted), what password is being used? In my working test-wiki implementation, if I go to my preferences and try to change the password with a variety of terms used as the "current" or "old" password: (no password, username, etc.), it says the password is incorrect.

Perhaps the password is not the issue - do you know of any incompatibilites with trying to import this patch to a up-and-running wiki?

Thanks -Joe Travaglini 17:54, 28 June 2006 (UTC)Reply