Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Dec 15, 2018 10:28 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Cacti password reset from Mysql not working
PostPosted: Tue Nov 06, 2018 12:39 pm 
Offline

Joined: Mon May 23, 2016 6:22 am
Posts: 11
Dear all,
please help me to reset admin password on Cacti

shell> mysql -u root -p
mysql> use cacti;
mysql> update user_auth set password=md5('admin') where username='admin';
Query OK, 1 row affected (0,00 sec)
Rows matched: 1 Changed: 1 Warnings: 0

But I cannot connect via GUI with admin/admin.

Where is the issue please?
Thanks

_________________
--------------- Ubuntu 17.04 / Cacti 1.1.25 -------------------


Top
 Profile  
 
 Post subject: Re: Cacti password reset from Mysql not working
PostPosted: Tue Nov 06, 2018 12:43 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1818
I would make sure that you are connecting Cacti to the correct DB. Also, if this is not on the login page with the cacti logo on it, then it may be Apache's user auth kicking in, or if it is, ensure that you do not have an LDAP domain that is being used.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Cacti password reset from Mysql not working
PostPosted: Wed Nov 07, 2018 6:42 am 
Offline

Joined: Mon May 23, 2016 6:22 am
Posts: 11
Dear Netvis
I think it is the correct DB used.
please see login page in attached. I don't know if it is Apache's user auth kicking or no.
LDAP domain is not used.

Thanks for your help.


Attachments:
Capture1.JPG
Capture1.JPG [ 23.68 KiB | Viewed 120 times ]

_________________
--------------- Ubuntu 17.04 / Cacti 1.1.25 -------------------
Top
 Profile  
 
 Post subject: Re: Cacti password reset from Mysql not working
PostPosted: Thu Nov 08, 2018 12:23 pm 
Offline

Joined: Mon May 23, 2016 6:22 am
Posts: 11
Hi,
please someone help me here?
Thanks

_________________
--------------- Ubuntu 17.04 / Cacti 1.1.25 -------------------


Top
 Profile  
 
 Post subject: Re: Cacti password reset from Mysql not working
PostPosted: Fri Nov 09, 2018 4:51 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1818
If you look at the user_auth table, make sure you have the right username. Also, check in the settings table to see what the value is for auth_method

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Cacti password reset from Mysql not working
PostPosted: Mon Nov 26, 2018 10:50 am 
Offline

Joined: Mon May 23, 2016 6:22 am
Posts: 11
Dear Netvit
sorry for late,
auth_method doesn't exist in settings table. Should I add it please?
Thank


Attachments:
Capture_mysql.JPG
Capture_mysql.JPG [ 13.03 KiB | Viewed 54 times ]

_________________
--------------- Ubuntu 17.04 / Cacti 1.1.25 -------------------
Top
 Profile  
 
 Post subject: Re: Cacti password reset from Mysql not working
PostPosted: Mon Nov 26, 2018 10:58 am 
Offline

Joined: Mon May 23, 2016 6:22 am
Posts: 11
All columns from settings table in attachment


Attachments:
Capture_mysql_2.JPG
Capture_mysql_2.JPG [ 88.61 KiB | Viewed 54 times ]

_________________
--------------- Ubuntu 17.04 / Cacti 1.1.25 -------------------
Top
 Profile  
 
 Post subject: Re: Cacti password reset from Mysql not working
PostPosted: Mon Nov 26, 2018 12:02 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1818
Since Auth_Method is missing, the default is 1 which is the built in authentication of cacti. Can you do the following for me:
Code:
select id, username, enabled, must_change_password, locked, failed_attempts, lastfail from user_auth;
+----+----------+---------+----------------------+--------+-----------------+----------+
| id | username | enabled | must_change_password | locked | failed_attempts | lastfail |
+----+----------+---------+----------------------+--------+-----------------+----------+
|  1 | admin    | on      |                      |        |               0 |        0 |
|  3 | guest    |         | on                   |        |               0 |        0 |
+----+----------+---------+----------------------+--------+-----------------+----------+

It should look something like above.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Cacti password reset from Mysql not working
PostPosted: Mon Nov 26, 2018 1:04 pm 
Offline

Joined: Mon May 23, 2016 6:22 am
Posts: 11
mysql> select id, username, enabled, must_change_password from user_auth;
+----+--------------+---------+----------------------+
| id | username | enabled | must_change_password |
+----+--------------+---------+----------------------+
| 1 | admin | on | |
| 3 | guest | on | on |
| 4 | monitor | on | |

others columns don't exist.

_________________
--------------- Ubuntu 17.04 / Cacti 1.1.25 -------------------


Top
 Profile  
 
 Post subject: Re: Cacti password reset from Mysql not working
PostPosted: Tue Nov 27, 2018 7:48 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1818
Is this a fresh install or an upgrade?

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group