[SOLVED] Error: Passwords do not match, please retype.

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

Moderators: Developers, Moderators

dmace
Posts: 3
Joined: Tue Oct 17, 2006 6:09 am
Location: amsterdam, nl

Don't need nothing fancy

Post by dmace »

Apparently some boxes are recognized as password-boxes by browsers.
FF3 and some other browsers have difficulty making the difference.
This might be FF3 or cacti-related.

After I removed the password for my cacti-site from the password-cache in FF3 everything worked ok.

So no IE-tab or other browsers are needed. Just type your password instead of saving it on FF3.
super-hornet
Cacti User
Posts: 175
Joined: Sun May 27, 2007 5:42 pm

Post by super-hornet »

Hi All

Today I suddenly realized that I cannot add in new device or save the existing device.
I get the same error message of:
Error: Passwords do not match, please retype.

I'm using Firefox 3.0 (released version) in openSUSE 11.0 Linux.

I then try using Konqueror of KDE 3.5 (openSUSE 11.0) and it works!

SH
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

It is a known error with FF3. No solution yet
Reinhard
yreddy
Posts: 43
Joined: Fri May 02, 2008 7:33 am
Location: Canada

Post by yreddy »

Here is a workaround that works for me on Firefox 3.0.1 on Windows XP:

1) Go to the host.php page of the device your want to modify
2) Select SNMP Version 3 in the corresponding listbox
3) Delete the password in the "SNMP Password (v3)" field
4) Re-select SNMP Version 1 or 2 in the corresponding listbox
5) Save

cheers
youri
mongobongo
Posts: 1
Joined: Thu Jul 31, 2008 1:14 pm

Temporary Solution for Ubuntu Hardy Users

Post by mongobongo »

I was able to get around this by un-checking Remember Passwords for Sites in FF.

I am running Ubuntu 8.04 - Desktop and FF 3.0.1

Hope this gets fixed soon by Mozilla as I view this as a temporary solution only. :(
praveen_b744
Posts: 14
Joined: Tue May 27, 2008 2:45 am

Post by praveen_b744 »

I solved this problem by removing the saved password (admin password of cacti) in the firefox.

Thanks to all
vengent
Posts: 8
Joined: Fri Nov 19, 2004 3:12 pm

Post by vengent »

what about flagging the form fields autocomplete=off?

Not sure if that works for saved passwords or not, but helps with the random cruft.
Boost
Posts: 2
Joined: Sat Sep 13, 2008 5:24 pm

Post by Boost »

vengent wrote:what about flagging the form fields autocomplete=off?

Not sure if that works for saved passwords or not, but helps with the random cruft.
I tried that and it seems to work! What I did was to add an autocomplete parameter to form_text_box in lib/html_form.php and turned autocomplete off on password-fields and fields called something with "username" in it. It's a hack, I know, but it looks like it works.
asellus
Cacti User
Posts: 50
Joined: Thu Feb 21, 2008 12:09 am

Post by asellus »

This isn't just FF3, it's FF2 as well. Client issue, clearing cookies for the site solves it.
RichardBronosky
Posts: 2
Joined: Mon Sep 29, 2008 9:54 am

PATCH: This corrects the behavior

Post by RichardBronosky »

Since Firefox's autocomplete mechanism fires after the window.onload, you cannot do value='' in the JS, instead you should do a setAttribute. Here is a patch that applies the correction.

Code: Select all

diff -u cacti-0.8.7b/host.php cacti-patched/host.php
--- cacti-0.8.7b/host.php	2008-02-11 19:57:48.000000000 -0500
+++ cacti-patched/host.php	2008-09-29 10:24:11.000000000 -0400
@@ -878,6 +878,8 @@
 	function setSNMP(snmp_type) {
 		switch(snmp_type) {
 		case "None":
+			document.getElementById('snmp_username').setAttribute('autocomplete', 'off');
+			document.getElementById('snmp_password').setAttribute('autocomplete', 'off');
 			document.getElementById('row_snmp_username').style.display        = "none";
 			document.getElementById('row_snmp_password').style.display        = "none";
 			document.getElementById('row_snmp_community').style.display       = "none";
@@ -891,6 +893,8 @@
 
 			break;
 		case "v1v2":
+			document.getElementById('snmp_username').setAttribute('autocomplete', 'off');
+			document.getElementById('snmp_password').setAttribute('autocomplete', 'off');
 			document.getElementById('row_snmp_username').style.display        = "none";
 			document.getElementById('row_snmp_password').style.display        = "none";
 			document.getElementById('row_snmp_community').style.display       = "";


Even though I posted the patch code above, due to tab->space conversion in this forum, I suggest using the attached file instead.

The easiest way to apply this patch is to cd to your cacti directory and:
1. THIS IS IMPORTANT. Verify the validity of the URI like this:

Code: Select all

curl -L http://forums.cacti.net/download.php?id=14681
2. If it looks like a safe patch, then apply it directly from that URI via curl:

Code: Select all

curl -L http://forums.cacti.net/download.php?id=14681|patch -p1 -N
Attachments
fix_snmp_password_completion.patch
This patch makes fixes the issue that Firefox has with the host edit page.
(1.1 KiB) Downloaded 1950 times
ragnard
Posts: 6
Joined: Fri Jan 04, 2008 1:10 pm

Post by ragnard »

Just wanted to say thanks.. This patch fixed the problem for me! Here's hoping they include it in the next release.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

We did it the other way round. But yes, it is fixed with 087c
Reinhard
Michael Schmarck
Posts: 4
Joined: Thu Nov 06, 2008 10:04 am
Location: Switzerland

Post by Michael Schmarck »

Hi.

How has this issue been solved? Is a patch available? in the discussion thread for Cacti 0.8.7c Beta 1 it just lists "-bug: Host save failed in FireFox 3 for non-SNMP V3 hosts, complaining about "password mismatch" without giving a bug number.

Thanks,
Michael
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

It is solved by not testing user/pw in cases where it is not required (e.g. non SNMP V3 hosts)
Reinhard
Bolik
Posts: 1
Joined: Wed Oct 21, 2009 4:32 am
Contact:

Re: PATCH: This corrects the behavior

Post by Bolik »

I'm trying to do it, but nothing comes out.
RichardBronosky wrote: 2. If it looks like a safe patch, then apply it directly from that URI via curl:

Code: Select all

curl -L http://forums.cacti.net/download.php?id=14681|patch -p1 -N

Code: Select all

bolik@smalgene:/home/usr/share/cacti/site$ sudo curl -L http://forums.cacti.net/download.php?id=14681|patch -p1 -N
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1122  100  1122    0     0   1312      0 --:--:-- --:--:-- --:--:--  1312
patching file host.php
patch: **** Can't remove file host.php : Permission denied


I understand the system must be stopped before that? I do kill, but the process is immediately revived.
Please help. It is necessary for a diploma project.
Thanks in advance!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest