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    


Firefox v3 & Cacti SNMP v3 Passwords

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: General
Author Message
mojiro
Cacti User


Joined: 24 Jul 2005
Posts: 60
Location: Greece, Korydallos - Athens (AWMN)

PostPosted: Sun Jul 06, 2008 7:42 am    Post subject: Firefox v3 & Cacti SNMP v3 Passwords Reply with quote

If you have enabled firefox's "password save", and you have saved the login password... then when you will create/edit a host firefox will attempt to complete the SNMP v3 Password although it is hidden!

Of course the same problem exists at every page that has "SNMP v3 Password".

The problem ? password field is being completed, password-confirmation field probably not and an error comes up from Cacti...

To fix it, open cacti/host.php near 147' line or find

Quote:
if ($_POST["snmp_password"] != $_POST["snmp_password_confirm"]) {

and replace it with

Quote:
if ($_POST["snmp_version"] == 3 && ($_POST["snmp_password"] != $_POST["snmp_password_confirm"])) {
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Sun Jul 06, 2008 8:11 am    Post subject: Reply with quote

Cool! That fixed it!

It's actually line 148.
Back to top
gandalf
Developer


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

PostPosted: Sun Jul 06, 2008 12:18 pm    Post subject: Reply with quote

Updated in SVN as commit#4621
Thanks for the patch!
Reinhard
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Wed Jul 09, 2008 8:27 am    Post subject: Reply with quote

Could this post be stickied, so that it's not easily lost on the next page?
Back to top
gandalf
Developer


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

PostPosted: Wed Jul 09, 2008 9:21 am    Post subject: Reply with quote

Sticky 'til 087c comes out
Reinhard
Back to top
mojiro
Cacti User


Joined: 24 Jul 2005
Posts: 60
Location: Greece, Korydallos - Athens (AWMN)

PostPosted: Thu Jul 10, 2008 1:50 am    Post subject: Reply with quote

remember to fix the same problem wherever exists SNMP v3 Password or! input text field with name="password"
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: General All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group