[chgpass] Déplacement de cracklib

darcs-hash:20100301215852-ffbb2-6843007b7816336a3c456c7e0710be96373a6d29.gz
This commit is contained in:
Nicolas Dandrimont 2010-03-01 22:58:52 +01:00
parent 3c09e7ffc2
commit bc6f364ba0

View file

@ -103,7 +103,7 @@ Il ne doit pas être basé sur un mot du dictionnaire.""", 'jaune')
continue
## 4 - Cracklib
test = commands.getoutput("echo '%s' | /usr/sbin/crack_testlib" % mdp)
test = commands.getoutput("echo '%s' | /usr/sbin/cracklib-check" % mdp)
if test.split(':')[-1] != ' ok' :
commentaire = {
' it does not contain enough DIFFERENT characters': u'Il y a trop de caractères identiques.' ,