X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=password-qualify-check;h=08e90dc9b6bead02b80d006b46ab6582a019e44e;hb=9b394648f35965c5b6e18a8ff12af25d73866f7a;hp=ccecd60e954e6501b82479105ab2d4c177ddc08e;hpb=2b01c5617d95921bc02d401bd135608d56518c3c;p=mirror%2Fuserdir-ldap-cgi.git diff --git a/password-qualify-check b/password-qualify-check index ccecd60..08e90dc 100755 --- a/password-qualify-check +++ b/password-qualify-check @@ -55,6 +55,11 @@ except ValueError, e: # 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('*') + tmpdir = tempfile.mkdtemp('', 'pwcheck-') F = open(tmpdir+'/wordlist', "w") for w in ldapwords: