projects
/
mirror
/
userdir-ldap-cgi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
releasing package userdir-ldap-cgi version 0.3.42
[mirror/userdir-ldap-cgi.git]
/
password-qualify-check
diff --git
a/password-qualify-check
b/password-qualify-check
index
ccecd60
..
95af588
100755
(executable)
--- a/
password-qualify-check
+++ b/
password-qualify-check
@@
-55,6
+55,13
@@
except ValueError, e:
# and against a dictionary created from the ldap info on this user
if len(ldapwords) > 0:
# and against a dictionary created from the ldap info on this user
if len(ldapwords) > 0:
+ # squeeze's cracklib-packer complains about '*' on input - it
+ # says 'skipping line: 1'
+ while '-' in ldapwords:
+ ldapwords.remove('-')
+ while '*' in ldapwords:
+ ldapwords.remove('*')
+
tmpdir = tempfile.mkdtemp('', 'pwcheck-')
F = open(tmpdir+'/wordlist', "w")
for w in ldapwords:
tmpdir = tempfile.mkdtemp('', 'pwcheck-')
F = open(tmpdir+'/wordlist', "w")
for w in ldapwords: