X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap-cgi.git;a=blobdiff_plain;f=password-qualify-check;h=08e90dc9b6bead02b80d006b46ab6582a019e44e;hp=ccecd60e954e6501b82479105ab2d4c177ddc08e;hb=fc0cb0a14988ef364b738aaad4352b311afab3a9;hpb=3bce39d94939aaf999189e4aaed805858a996153 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: