You are here: Foswiki>Tasks Web>Item9720 (13 Dec 2011, JayenAshar)Edit Attach

Item9720: Unable to add first user to AdminGroup

pencil
Priority: Normal
Current State: No Action Required
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component:
Branches:
Reported By: HuuDongQuach JayenAshar
Waiting For:
Last Change By: JayenAshar
After installing a clean foswiki 1.1.0 beta 1 and registering the first user, I'm trying to add the registered user to the AdmingGroup by following the instructions. Everything seems to work but after saving the AdminGroup topic, the registered user is not listed as a member of the AdminGroup.

I've attached the AdminGroup.txt file and a screenshot

-- HuuDongQuach - 20 Sep 2010

Do you have any warnings in the apache or foswiki logs?

What is your configuration - standard usermapper/password/login managers?

I was unable to reproduce the problem, with a fresh AdminGroup that had a manual * Set GROUP statement

-- PaulHarvey - 20 Sep 2010

I don't have any warnings in foswiki logs. I don't have access to apache logs since foswiki is hosted by fatcow.

  • LoginManager: Foswiki::LoginManager::ApacheLogin
  • UserMappingManager: Foswiki::Users::TopicUserMapping
  • PasswordManager: None
  • Apache configuration: .htaccess files

Just to be sure, I did a second clean installation and I get the same errors.

I just notice that the module Apache::Htpasswd is not installed on fatcow servers. Is it a mandatory module?

-- HuuDongQuach - 20 Sep 2010

Mandatory, no - but standard, yes. Sounds like you are missing files from the installation, is that right?

Try downloading HtPasswdUser.pm manually and save it to lib/Foswiki/Users. Then select HtPasswdUser as the PasswordManager

But probably if this was done for you there might be a good reason (!). Not sure if the groups UI is supposed to work without HtPasswdUser.

-- PaulHarvey - 20 Sep 2010

No, there is no missing files what I mean is the CPAN Apache::Htpasswd module. Sorry for the confusion. I will install foswiki 1.0.10 to see if I have the same behavior.

I set the PasswordManager to None because the authentification is done through Apache and to avoid to ask a password during the registration of the user.

-- HuuDongQuach - 20 Sep 2010

Foswiki's DEPENDENCIES file says Apache::Htpasswd,>=0,cpan,Optional, may be required for ApacheHtpasswd password manager

-- PaulHarvey - 20 Sep 2010

Ok, my problem is now solved. After reading the release notes, I noticed that there suppose to be a new way to add a user to a group. After reviewing the AdminGroup topic carefully, I noticed two buttons ... one for adding a user and a second one to remove a user from a group.

By using the add button, I was able to add myself as a member of AdminGroup.

Also, I noticed that the Set GROUP command doesn't work. I deleted the assignation (Set GROUP = list of users) and I'm still list as a member of AdminGroup.

Maybe, it is the desired behavior. In that case, the documentation on AdminGroup topic should be corrected.

-- HuuDongQuach - 21 Sep 2010

Hi, I believe I am following the correct instructions to add the first user to the AdminGroup, but it's failing, and I have no idea how to turn on debug messages to find out why. I don't have access to apache logs and the foswiki logs aren't showing anything useful. I just get:

There were errors adding jayen to the AdminGroup group.

Please check to ensure you have permission to modify the group.

possibly relevant info:
  • foswiki 1.1.0 (i successfully installed 1.0.6 and upgraded regularly through to 1.0.10)
  • loginmanager - apachelogin
  • passwordmanager - none

-- JayenAshar - 29 Oct 2010

Please upgrade to 1.1.1.

We fixed some group related code.

-- KennethLavrsen - 29 Oct 2010

Thanks. Installing 1.1.1 worked with the same settings.

-- JayenAshar - 02 Nov 2010
 

ItemTemplate edit

Summary Unable to add first user to AdminGroup
ReportedBy HuuDongQuach JayenAshar
Codebase 1.1.0 beta1
SVN Range
AppliesTo Engine
Component
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease minor
ReleasedIn 1.1.0
trunkCheckins
Release01x01Checkins
I Attachment Action Size Date Who Comment
AdminGroup.tifftiff AdminGroup.tiff manage 360 K 20 Sep 2010 - 01:29 HuuDongQuach Screenshot of the AdminGroup topic
AdminGroup.txttxt AdminGroup.txt manage 1 K 20 Sep 2010 - 01:28 HuuDongQuach AdminGroup.txt file
Topic revision: r12 - 13 Dec 2011, JayenAshar
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy