Module: check_mk
Branch: master
Commit: 599543c336688d3f73dba20ba20a3fcefdb83946
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=599543c336688d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Feb 5 15:37:28 2013 +0100
FIX: Preventing autocomplete in password fields of "edit profile" dialog
---
.bugs/885 | 7 +++++--
ChangeLog | 1 +
web/htdocs/wato.py | 4 ++--
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/.bugs/885 b/.bugs/885
index aa1ce44..4cd4848 100644
--- a/.bugs/885
+++ b/.bugs/885
@@ -1,10 +1,13 @@
Title: Password field in personal settings must not be prefilled by browser
Component: multisite
-State: open
+Class: bug
+State: done
Date: 2013-01-21 15:55:44
Targetversion: 1.2.2
-Class: bug
If the browser enters a possible previous password then after saving
(because of changes to the notifications) the user password gets
changed and the user logged out - forever.
+
+2013-02-05 15:36:48: changed state open -> done
+Just implemented. Added "autocomplete=off" attribute to input fields.
diff --git a/ChangeLog b/ChangeLog
index 8ec9788..9aae64a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -36,6 +36,7 @@
* Added comment painter to notification related views
* Added compatibility code to use hashlib.md5() instead of md5.md5(), which
is deprecated in python > 2.5 to prevent warning messages in apache error log
+ * FIX: Preventing autocomplete in password fields of "edit profile" dialog
BI:
* Use Ajax to delay rendering of invisible parts of the tree (this
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index f8dd222..18b9a43 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -10956,10 +10956,10 @@ def page_user_profile():
if config.may('general.change_password') and not is_locked('password'):
forms.section(_("Password"))
- html.password_input('password')
+ html.password_input('password', autocomplete = "off")
forms.section(_("Password confirmation"))
- html.password_input('password2')
+ html.password_input('password2', autocomplete = "off")
if config.may('general.edit_profile'):
select_language(config.get_language(''))
Module: check_mk
Branch: master
Commit: 00e756a7d42757377d13e2e11689c6b1022dc847
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=00e756a7d42757…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Feb 5 16:18:21 2013 +0100
Updated bug entries #0915
---
.bugs/915 | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/.bugs/915 b/.bugs/915
new file mode 100644
index 0000000..4011a40
--- /dev/null
+++ b/.bugs/915
@@ -0,0 +1,20 @@
+Title: More comfortable handling of "Performance Counters" monitoring
+Component: checks
+State: open
+Date: 2013-02-05 16:14:01
+Targetversion: 1.2.3
+Class: feature
+
+At the moment the ids of performancecounters must be scanned and configured
+manually (http://mathias-kettner.de/checkmk_windows.html#H1:Performance%20Counters,%2…)
+
+This is not very comfortable and also no auto detection. It would be nice to have
+a functionality where we can deliver a default config or one user could create
+his own config like:
+
+[winperf]
+ counters = $MSExchangeTransport Queues$:msx_queues
+
+Then, on agent startup the variable would be used to scan for the id automatically.
+The localization problem has to be fixed when implementing this. Maybe there is
+something like LANG=c ...?
Module: check_mk
Branch: master
Commit: 2ab1edefe3767950e052f2bd76a6b0186a49711f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2ab1edefe37679…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Feb 5 15:16:45 2013 +0100
Added compatibility code to use hashlib.md5() instead of md5.md5(), which is deprecated in python > 2.5 to prevent warning messages in apache error log
---
ChangeLog | 2 ++
web/htdocs/login.py | 11 ++++++++---
web/htdocs/md5crypt.py | 11 +++++++----
3 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ded1aa4..8ec9788 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -34,6 +34,8 @@
Multisite:
* Added comment painter to notification related views
+ * Added compatibility code to use hashlib.md5() instead of md5.md5(), which
+ is deprecated in python > 2.5 to prevent warning messages in apache error log
BI:
* Use Ajax to delay rendering of invisible parts of the tree (this
diff --git a/web/htdocs/login.py b/web/htdocs/login.py
index d9f843d..8af8b71 100644
--- a/web/htdocs/login.py
+++ b/web/htdocs/login.py
@@ -27,7 +27,12 @@
import defaults, htmllib, config, userdb
from lib import *
from mod_python import apache
-import os, md5, time
+import os, time
+
+try:
+ from hashlib import md5
+except ImportError:
+ from md5 import md5 # deprecated with python 2.5
def site_cookie_name(site_id = None):
if not site_id:
@@ -54,7 +59,7 @@ def load_secret():
# Create new secret when this installation has no secret
if secret == '':
- secret = md5.md5(str(time.time())).hexdigest()
+ secret = md5(str(time.time())).hexdigest()
file(secret_path, 'w').write(secret + "\n")
return secret
@@ -69,7 +74,7 @@ def load_serial(user_id):
# Generates the hash to be added into the cookie value
def generate_hash(username, now, serial):
secret = load_secret()
- return md5.md5(username + now + str(serial) + secret).hexdigest()
+ return md5(username + now + str(serial) + secret).hexdigest()
def del_auth_cookie():
name = site_cookie_name()
diff --git a/web/htdocs/md5crypt.py b/web/htdocs/md5crypt.py
index f83faf5..cd7a4a6 100644
--- a/web/htdocs/md5crypt.py
+++ b/web/htdocs/md5crypt.py
@@ -35,15 +35,18 @@
# This port adds no further stipulations. I forfeit any copyright interest.
-import md5
+try:
+ from hashlib import md5
+except ImportError:
+ from md5 import md5 # deprecated with python 2.5
def md5crypt(password, salt, magic='$1$'):
# /* The password first, since that is what is most unknown */ /* Then our magic string */ /* Then the raw salt */
- m = md5.new()
+ m = md5()
m.update(password + magic + salt)
# /* Then just as many characters of the MD5(pw,salt,pw) */
- mixin = md5.md5(password + salt + password).digest()
+ mixin = md5(password + salt + password).digest()
for i in range(0, len(password)):
m.update(mixin[i % 16])
@@ -61,7 +64,7 @@ def md5crypt(password, salt, magic='$1$'):
# /* and now, just to make sure things don't run too fast */
for i in range(1000):
- m2 = md5.md5()
+ m2 = md5()
if i & 1:
m2.update(password)
else:
Module: check_mk
Branch: master
Commit: 460158d5e3b96de24429747881e6e7058f57a44c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=460158d5e3b96d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Feb 5 08:58:20 2013 +0100
Updated bug entries #0914
---
.bugs/914 | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/.bugs/914 b/.bugs/914
new file mode 100644
index 0000000..831b38c
--- /dev/null
+++ b/.bugs/914
@@ -0,0 +1,9 @@
+Title: Host views miss filter "Last host state change"
+Component: multisite
+State: open
+Date: 2013-02-05 08:57:08
+Targetversion: 1.2.3
+Class: feature
+
+The service views have such a filter for the service state.
+It would be nice to have it also in host views.