# 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: