This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- md5crypt.py.orig 2012-06-18 19:19:24.093589000 +0800 | |
+++ md5crypt.py 2012-06-18 19:19:53.057589003 +0800 | |
@@ -41,7 +41,7 @@ | |
MAGIC = '$1$'# Magic string | |
ITOA64 = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" | |
-import md5 | |
+from hashlib import md5 | |
def to64 (v, n): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################### | |
# md5crypt.py | |
# | |
# 0423.2000 by michal wallace http://www.sabren.com/ | |
# based on perl's Crypt::PasswdMD5 by Luis Munoz ([email protected]) | |
# based on /usr/src/libcrypt/crypt.c from FreeBSD 2.2.5-RELEASE | |
# | |
# MANY THANKS TO | |
# | |
# Carey Evans - http://home.clear.net.nz/pages/c.evans/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- cfg_password_ui_.py.orig 2012-06-02 11:56:47.931756001 +0800 | |
+++ cfg_password_ui_.py 2012-06-02 11:58:20.859756001 +0800 | |
@@ -71,6 +71,5 @@ | |
if not c: | |
return False | |
- print "User %s (%s) try to init with %s" % (user, c.password, password) | |
p = c.password | |
return p == password and p != 'NOPASSWORDSET' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- passwd_ui.py.orig 2012-06-02 11:40:38.267756001 +0800 | |
+++ passwd_ui.py 2012-06-02 12:07:42.995755998 +0800 | |
@@ -36,6 +36,7 @@ | |
import fcrypt as crypt | |
from shinken.basemodule import BaseModule | |
+from shinken.md5crypt import apache_md5_crypt | |
print "Loaded Apache/Passwd module" | |