Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[SOLVED] Error: Passwords do not match, please retype.
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cacti Forum Index -> Help: General
Author Message
dmace



Joined: 17 Oct 2006
Posts: 3
Location: amsterdam, nl

PostPosted: Wed Jul 02, 2008 2:41 am    Post subject: Don't need nothing fancy Reply with quote

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.
Back to top
super-hornet
Cacti User


Joined: 27 May 2007
Posts: 150

PostPosted: Fri Jul 04, 2008 5:05 am    Post subject: Reply with quote

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
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 17009
Location: Muenster, Germany

PostPosted: Fri Jul 04, 2008 2:59 pm    Post subject: Reply with quote

It is a known error with FF3. No solution yet
Reinhard
Back to top
yreddy



Joined: 02 May 2008
Posts: 24
Location: Canada

PostPosted: Wed Jul 30, 2008 8:18 am    Post subject: Reply with quote

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
Back to top
mongobongo



Joined: 31 Jul 2008
Posts: 1

PostPosted: Thu Jul 31, 2008 1:26 pm    Post subject: Temporary Solution for Ubuntu Hardy Users Reply with quote

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.
Back to top
praveen_b744



Joined: 27 May 2008
Posts: 14

PostPosted: Fri Aug 01, 2008 4:39 am    Post subject: Reply with quote

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

Thanks to all
Back to top
vengent



Joined: 19 Nov 2004
Posts: 7

PostPosted: Sun Aug 10, 2008 2:25 am    Post subject: Reply with quote

what about flagging the form fields autocomplete=off?

Not sure if that works for saved passwords or not, but helps with the random cruft.
Back to top
Boost



Joined: 13 Sep 2008
Posts: 2

PostPosted: Sat Sep 13, 2008 5:27 pm    Post subject: Reply with quote

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.
Back to top
asellus
Cacti User


Joined: 21 Feb 2008
Posts: 50

PostPosted: Sat Sep 13, 2008 8:52 pm    Post subject: Reply with quote

This isn't just FF3, it's FF2 as well. Client issue, clearing cookies for the site solves it.
Back to top
RichardBronosky



Joined: 29 Sep 2008
Posts: 2

PostPosted: Mon Sep 29, 2008 10:45 am    Post subject: PATCH: This corrects the behavior Reply with quote

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:

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:
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:
curl -L http://forums.cacti.net/download.php?id=14681|patch -p1 -N



fix_snmp_password_completion.patch
 Description:
This patch makes fixes the issue that Firefox has with the host edit page.

Download
 Filename:  fix_snmp_password_completion.patch
 Filesize:  1.1 KB
 Downloaded:  1564 Time(s)

Back to top
ragnard



Joined: 04 Jan 2008
Posts: 6

PostPosted: Fri Oct 10, 2008 12:05 pm    Post subject: Reply with quote

Just wanted to say thanks.. This patch fixed the problem for me! Here's hoping they include it in the next release.
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 17009
Location: Muenster, Germany

PostPosted: Sat Oct 11, 2008 2:05 am    Post subject: Reply with quote

We did it the other way round. But yes, it is fixed with 087c
Reinhard
Back to top
Michael Schmarck



Joined: 06 Nov 2008
Posts: 4
Location: Switzerland

PostPosted: Mon Nov 10, 2008 8:13 am    Post subject: Reply with quote

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
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 17009
Location: Muenster, Germany

PostPosted: Tue Nov 11, 2008 2:59 pm    Post subject: Reply with quote

It is solved by not testing user/pw in cases where it is not required (e.g. non SNMP V3 hosts)
Reinhard
Back to top
Bolik



Joined: 21 Oct 2009
Posts: 1

PostPosted: Wed Oct 21, 2009 10:35 am    Post subject: Re: PATCH: This corrects the behavior Reply with quote

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:
curl -L http://forums.cacti.net/download.php?id=14681|patch -p1 -N



Code:
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!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: General All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group