Change User Password (no admin)

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

Moderators: Developers, Moderators

Post Reply
tecker2010
Posts: 24
Joined: Mon Jul 24, 2006 9:11 am
Location: Germany
Contact:

Change User Password (no admin)

Post by tecker2010 »

Hi,

I have build a Cacti management system with about 30 users (3 admins, rest user with only viewing rights). Is there a possibility that a user without admin-rights and console access could change his owm password?

thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

If they have access to the cacti db, yes.
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

I don't think that is what he is really asking. I believe he is wanting a link somewhere (possibly near the logged in username) that allows the user to change their own password, without needing someone to do so from the user admin page.

This is something I think is definitely a necessity. I will see what I can do about it. User's should be able to change their own password without being a user admin.
bineshan
Posts: 1
Joined: Sun Oct 09, 2011 12:08 am

Re: Change User Password (no admin)

Post by bineshan »

Hi
this may be useful

in include folder , change about line 70 in top_header.php and top_graph_header.php to this:

Code: Select all

Logged in as <strong><?php print db_fetch_cell("select username from user_auth where id=" .$_SESSION["sess_user_id"]);?></strong> (<a href="/auth_changepassword.php?<?php echo "ref=".(isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : "index.php") ?> ">&nbsp;Change Password</a> | <a href="logout.php">Logout</a>&nbsp;)&nbsp;
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Change User Password (no admin)

Post by noname »

It works.
(But I think "/auth_changepassword.php" should be "auth_changepassword.php".)

Image

When clicked that,
Image

Users will be able to change their password whenever they like.
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests