|
|
| Author |
Message |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Mon Mar 17, 2008 10:43 am Post subject: |
|
|
| dave99 wrote: | There are only 2 cacti users in my setup, admin & guest. It appears that guest can only view graphs and nothing more. When adding a plugin, I add the permissions to the admin user. With cacti auth off, it appears the concept of users disappears, the sess_user_id variable just doesn't get set anymore. The authentication I use with groundwork is really secondary to this, it doesn't affect cacti at all, it's tied into apache. As far as cacti knows, it is just sitting there by itself with it's built-in authentication off.
What seems to be a cleaner fix is to put your original file back, and in auth.php add a section that checks if the authentication method is 0, if so then go ahead and set the sess_user_id=1. |
Yep, that's what I've just done.
However, what I see now is a series of errors about $current_user not being defined in top_graph_header.php. Since that's a standard cacti thing, I assume at the moment that that's not my problem, but a cacti issue - I get it on the Graphs tab too. Do you see this error message? |
|
| Back to top |
|
 |
dave99
Joined: 17 Mar 2006 Posts: 19
|
Posted: Mon Mar 17, 2008 11:33 am Post subject: |
|
|
| Yes, and the solution was essentially the same, if the auth method=0, then tell it to query based on the admin user id and set the current_user variable. This applied to top_header & top_graph_header. On the graph pages it shows the 'logged in as admin', but that doesn't bother me too much. |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|