guest user authentication error

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

Moderators: Developers, Moderators

dalluc
Cacti User
Posts: 54
Joined: Thu Oct 01, 2009 8:23 am

guest user authentication error

Post by dalluc »

Hi guys,
I have enabled the geust user in the User Management tab, but when I try to enter Cacti with this user, I obtain an Error page. I cannot understund the problem. Some sugestions?

Regards
Dalluc
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

Which error page do you obtain? Some Webserver Error page like HTTP 500 or a cacti error with "Invalid User Name/Password Please Retype"?

Did you set a password for the guest user?
dalluc
Cacti User
Posts: 54
Joined: Thu Oct 01, 2009 8:23 am

Post by dalluc »

Yes... I have setted a password for the guest user... and...

The error that I obtain is attached in the message... is something like an infinite loop making the authentication.

Still thanks
Dalluc
Attachments
Guest-Error.png
Guest-Error.png (37.09 KiB) Viewed 2984 times
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

Which version of PHP do you use.
Try the following:
1. Delete your cookies
2. Check in your php.ini if session.cookie_domain is set or not. If set, unset it like "session.cookie_domain="

If both steps do not help, please post the [Session] part of your php.ini
dalluc
Cacti User
Posts: 54
Joined: Thu Oct 01, 2009 8:23 am

Post by dalluc »

I have deleted all the cookies.

In php.ini there is the directive session.cookie_domain =
without the ''. Is it the same?

It's still not working, giving the same error!!

Howewer it is strange that it is a PHP's problem, because with the user admin all is working fine.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Have you picked the guest account under Console->Settings->Authentication?

TheWitness
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?
dalluc
Cacti User
Posts: 54
Joined: Thu Oct 01, 2009 8:23 am

Post by dalluc »

In the authentication tab I have configured the following settings:

Authentication method: Builtin Authentication
Guest User: guest
User template: guest

I did not change anything about the LDAP settings.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Very odd. I would have to look at it. It's definately not normal.

TheWitness
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?
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

Which browser do you use? Have you tried a different one?

Try to create a new user (like guest1 with the same privileges guest has) - Does authentication with this user work?
dalluc
Cacti User
Posts: 54
Joined: Thu Oct 01, 2009 8:23 am

Post by dalluc »

I'll do it. But... taking a look to the error showed above, I can understand that the problem when I log in with the guest user is opening the index.php. Then I think the authentication was already done...

Besides, after have tried to enter with the guest user, I have the same error also with the admin user. At this point I can enter with the admin user only if I close and open the web-browser.

I am using Konqueror with Kubuntu 8.10.

Regards
Dalluc
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

I am 99% sure it is a Konqueror problem.
Please try a different browser!
dalluc
Cacti User
Posts: 54
Joined: Thu Oct 01, 2009 8:23 am

Post by dalluc »

How you suggested, I created I new user named guest1 without setting a password for it. Then I tried to enter Cacti with guest1 and nothing in the field for the password. Cacti answered that it is necessary to fill the space for the password.

Then I entered with admin and I setted a password for this new user.
When I tried to enter cacti with guest1 and the new password, I obtained a page telling:

ACCESS DENIED
you are not permitted to access this section of Cacti. If you feel that you need access to this particular section, please contact the Cacti administrator.


Then, my question is: how should the guest user enter Cacti? Shouldn't he do it in the same way as the admin user does?

PS: Konqueror problem?? Should I try with Firefox??

Still thanks
Regards
Dalluc
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

Yeah please try another browser like Firefox...

The "ACCESS DENIED" result from missing permissions. Got to User Management, click on guest1 and in the tab Realm Permissions you can find what the guest1-user should see. e.g. check "View graphs"

Then you should be able to log in with guest1 and only see the graphs.
The guest user should NOT have the same permissions as the admin user! Furthermore I suggest for authentication something more secure than basic authentication, e.g. SSL-Extensions.

To resolve the problem with "cyclic..." pleas try another browser, I am quite sure it is a Konqueror problem.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Sirup, I consider it a bug. However, we have to understand where the user is pointing their browser too (exactly) and know the Cacti version.

What's odd though is that I have never experienced this before. So, also need to know how this Cacti was installed, from source or packages and whose package.

TheWitness
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?
dalluc
Cacti User
Posts: 54
Joined: Thu Oct 01, 2009 8:23 am

Post by dalluc »

Then for the USER guest1 i have setted:

User Name: guest1
Full Name: guest per prova funzionamento
Enabled picked
Account options: allow this user to keep custom graph settings
Graph options: All picked
Login options: show the default graph screen
Realm permission: view graphs

In this way, I can log in with guest1 but I obtain a graph page with no graphs.

In the following message I'll explain how I installed this Cacti.

Regards
Dalluc
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests