01195: Can't add users to either SiteAdmin.AuthUser or in local/config.php

Summary: Can't add users to either SiteAdmin.AuthUser or in local/config.php
Created: 2010-05-20 13:28
Status: Closed - not a bug
Category: Bug
From: tamouse
Assigned:
Priority: 4
Version: 2.2.6
OS: CentOS/wiki.imnotaboy.com/php 4.3.9

Description: I have tried adding entries for new users into SiteAdmin.AuthUser and via the local/config.php file, but neither seems to work. I have one user defined, but can't seem to define any more.

Can you explain in more detail what you've tried and what's not working? When you say "can't seem to define any more" are you referring to the fact that they seem to be ineffective or to the fact that you can't edit the page or what? --Peter Bowers May 20, 2010, at 03:32 PM

I added users to SiteAdmin.AuthUser the way it explains it in the text. I could add one user fine. But when I went back to add another, and subsequently tried to log in with the new user, it wouldn't take the new user. The old user I added sitll works fine. Then I tried adding another user in config.php, but I couldn't log in with that user either. I'll paste the text of the AuthUser page and config.php to pastebin.org:

This is the config.php file: http://pastebin.org/260298

This is the SiteAdmin.AuthUser contents: http://pastebin.org/260426

--tamouse Thu May 20 23:10:22 CDT 2010

Update: -- actually, I just checked something. I was using the same password for the ImNotABoy user as my default edit password. When I changed the ImNotABoy password in SiteAdmin.AuthUser to something else, that user stopped working as well. So it's not working for anything I add to the SiteAdmin.AuthUser file, nor anything I add in config.php. --tamouse Thu May 20 23:21:06 CDT 2010

Just remove the -> # at the beginning of the line:

  someone: $1$Dy6l3Bx4$Nls8KWt5HaEPXF1FhRYMw.
  ImNotABoy: $1$m97NaJtm$stRJ0/Qe7UM/9xhuPsGOt/

In the examples, there are hashes in order to comment-out the lines, and in order not to set actual passwords for users Alice and Bob. --Petko May 21, 2010, at 12:58 AM

Ok, did that, but it still doesn't seem to work. And why doesn't the user set in the config.php work? --tamouse Fri May 21 11:30:13 CDT 2010

Note that the groups defined in SiteAdmin.AuthUser were also prepended by "-> #" -- remove it. Can you enable the diagnostic tools by un-commenting line 82 of config.php so that it reads
$EnableDiag = 1;
This will allow us to see what is the final AuthUser configuration. --Petko May 23, 2010, at 05:14 AM

ok, done --tamouse May 23, 2010, at 11:09 PM

The config.php passwords and groups seem correctly set, but only the "geekgirl" user has a password (and is in the group @writers) so this user should be able to edit pages where the ?action=attr permissions are set to id:geekgirl, id:* or @writers. The scripts/authuser.php file is loaded correctly. A thing that could be broken is the page SiteAdmin.AuthUser -- there is not enough information about it. Double-check that there are no characters other than spaces on/before the lines where users, groups and passwords are defined. Last thing, I assume that you edit that page via the wiki, and that you don't modify directly the disk file. --Petko May 24, 2010, at 01:50 AM

Ok -- this actually helps -- i didn't have action=attr set correctly. "geekgirl" does work if I set (for example) Main.GroupAttributes edit password to "@writers". However, the users/passwords defined in SiteAdmin.AuthUser still don't work. I've pasted the current contents of SiteAdmin.AuthUser at http://pastebin.org/277599 . I do indeed edit that page via the wiki. --tamouse May 25, 2010, at 01:06 AM

This is still a problem: I can't get any users specified in SiteAdmin.AuthUser to work. I've subsequently moved them out of there into config.php. tamouse May 27, 2010, at 11:35 AM

  @writers: ImNotABoy, someone, geekgirl

Could that be that there were no commas between the usernames? In both pages PmWiki.AuthUser and SiteAdmin.AuthUser there are commas between the users. --Petko May 27, 2010, at 03:18 PM

This doesn't explain why the user's don't work, though. --tamouse May 29, 2010, at 09:41 PM

What does it mean that the users don't work? Are there pages these users are allowed to edit (with "id:someone", "id:ImNotABoy" or "id:*" in ?action=attr of the page)? With the correct group setting @writers: ImNotABoy, someone, geekgirl can't these users login and edit pages in the Main group (where the attribute is set to @writers)? Do the users' browsers accept cookies? --Petko May 30, 2010, at 03:33 PM

I finally did get this to work. It was entirely PEBKAC. I had not set the right attributes on the Main.GroupAttributes page. tamouse May 29, 2011, at 06:59 PM