projects
/
mirror
/
userdir-ldap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3057270
)
extend md5 hash to include 0-9
author
rmurray
<>
Fri, 7 Dec 2001 04:13:37 +0000
(
04:13
+0000)
committer
rmurray
<>
Fri, 7 Dec 2001 04:13:37 +0000
(
04:13
+0000)
userdir_ldap.py
patch
|
blob
|
history
diff --git
a/userdir_ldap.py
b/userdir_ldap.py
index
2511c71
..
aee0e6f
100644
(file)
--- a/
userdir_ldap.py
+++ b/
userdir_ldap.py
@@
-146,7
+146,7
@@
def GenPass():
def HashPass(Password):
# Hash it telling glibc to use the MD5 algorithm - if you dont have
# glibc then just change Salt = "$1$" to Salt = "";
def HashPass(Password):
# Hash it telling glibc to use the MD5 algorithm - if you dont have
# glibc then just change Salt = "$1$" to Salt = "";
- SaltVals = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/.";
+ SaltVals = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789
/.";
Salt = "$1$";
Rand = open("/dev/urandom");
for x in range(0,10):
Salt = "$1$";
Rand = open("/dev/urandom");
for x in range(0,10):