can't add user - "Error: Username change not permitted&

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

keefe007
Posts: 24
Joined: Fri Sep 23, 2005 11:33 pm

Post by keefe007 »

I temporarily set guest user and user template to admin and now I can't get back into the console. Any ideas?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Um... I think I know what is wrong now.. :) I will have time this week to look into it. Been extremely busy... :(
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
keefe007
Posts: 24
Joined: Fri Sep 23, 2005 11:33 pm

Post by keefe007 »

Rony: Do you know how I can undo my problem?
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

keefe007 wrote:Rony: Do you know how I can undo my problem?
Change guest user and user template to 0 in table settings.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Tony,

Is there a bug report open on this. If not, can you please open one and assign it to yourself.

Thanks,

Larry
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
jgisler
Cacti User
Posts: 63
Joined: Wed Sep 28, 2005 1:12 pm

Post by jgisler »

Actually, the easiest thing to do was this.

Copy one of your current accounts to an account called guest. Mind you, I had removed this account prior to this problem.

Then edit the account from the user manager interface, removing all the ACL's to just view graphs. Also, disable the account.

Then goto settings -> Authentication & change the Guest User -> guest
as well as the User Template -> guest.

Bam your done. Go create a user!

Thanks again Team Cacti for such an awesome tool!
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Keefe,

Please send me a dump of you user table from the Cacti database.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

The way to fix this is simply to go to the Settings->Authentication and hit save.

I will repair the logic in the user administration to fix the problem, but that is the work around for now.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Problem is related to an unknown value in the settings table. The installer will be fixed to address this issue in later releases.

For now, the work around is simply to save the Settings->Authentication tab. This will place the correct values into the settings table.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
suyashjain
Posts: 8
Joined: Thu Nov 16, 2006 12:15 am
Location: Bangalore
Contact:

Post by suyashjain »

gthe is correct.
suyashjain
Posts: 8
Joined: Thu Nov 16, 2006 12:15 am
Location: Bangalore
Contact:

Post by suyashjain »

GTHE says...


EDIT.
need go to "Settings" - "Authentication". Set for [Guest User] and [User Template] any value, not "Not User".
Save.
Now set for [Guest User] and [User Template] value = "Not User".
Save.

create user withous error.
the problem = in table "settings" default value for [user_template] and [guest_user] is NULL.

which is working[/b]
xpaul
Posts: 1
Joined: Thu Aug 14, 2008 6:38 pm

Post by xpaul »

rony's suggestion worked perfect, just save authentication tab (had to remove the prepopulated username/password fields for the LDAP section), then I can add users
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests