Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Mon May 21, 2012 8:38 am


ATTENTION: All users passwords have been cleared.
Please use the "Forgot Password" feature to reset your password.


All times are UTC - 5 hours




Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Don't need nothing fancy
PostPosted: Wed Jul 02, 2008 2:41 am 
Offline

Joined: Tue Oct 17, 2006 6:09 am
Posts: 3
Location: amsterdam, nl
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 04, 2008 5:05 am 
Offline
Cacti User

Joined: Sun May 27, 2007 5:42 pm
Posts: 165
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 04, 2008 2:59 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 20544
Location: Muenster, Germany
It is a known error with FF3. No solution yet
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 30, 2008 8:18 am 
Offline

Joined: Fri May 02, 2008 7:33 am
Posts: 35
Location: Canada
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


Top
 Profile  
 
 Post subject: Temporary Solution for Ubuntu Hardy Users
PostPosted: Thu Jul 31, 2008 1:26 pm 
Offline

Joined: Thu Jul 31, 2008 1:14 pm
Posts: 1
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. :(


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 01, 2008 4:39 am 
Offline

Joined: Tue May 27, 2008 2:45 am
Posts: 14
I solved this problem by removing the saved password (admin password of cacti) in the firefox.

Thanks to all


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 10, 2008 2:25 am 
Offline

Joined: Fri Nov 19, 2004 3:12 pm
Posts: 7
what about flagging the form fields autocomplete=off?

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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 13, 2008 5:27 pm 
Offline

Joined: Sat Sep 13, 2008 5:24 pm
Posts: 2
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 13, 2008 8:52 pm 
Offline
Cacti User

Joined: Thu Feb 21, 2008 12:09 am
Posts: 50
This isn't just FF3, it's FF2 as well. Client issue, clearing cookies for the site solves it.


Top
 Profile  
 
 Post subject: PATCH: This corrects the behavior
PostPosted: Mon Sep 29, 2008 10:45 am 
Offline

Joined: Mon Sep 29, 2008 9:54 am
Posts: 2
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


Attachments:
File comment: This patch makes fixes the issue that Firefox has with the host edit page.
fix_snmp_password_completion.patch [1.1 KiB]
Downloaded 1680 times
Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 10, 2008 12:05 pm 
Offline

Joined: Fri Jan 04, 2008 1:10 pm
Posts: 6
Just wanted to say thanks.. This patch fixed the problem for me! Here's hoping they include it in the next release.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 11, 2008 2:05 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 20544
Location: Muenster, Germany
We did it the other way round. But yes, it is fixed with 087c
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 10, 2008 8:13 am 
Offline

Joined: Thu Nov 06, 2008 10:04 am
Posts: 4
Location: Switzerland
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 11, 2008 2:59 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 20544
Location: Muenster, Germany
It is solved by not testing user/pw in cases where it is not required (e.g. non SNMP V3 hosts)
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: PATCH: This corrects the behavior
PostPosted: Wed Oct 21, 2009 10:35 am 
Offline

Joined: Wed Oct 21, 2009 4:32 am
Posts: 1
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], williamchir and 6 guests


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