Item9720: Unable to add first user to AdminGroup
Priority: Normal
Current State: No Action Required
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component:
Branches:
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