Red Hat Bugzilla – Bug 473460
firstboot aborts when trying to set a dictionary-based password
Last modified: 2009-09-03 09:10:55 EDT
When trying to set an user password based on a dictionary word, instead of simply showing a warning, firstboot aborted with this exception:
Traceback (most recent call last):
File "/usr/lib64/python2.5/site-packages/firstboot/interface.py", line 102, in _nextClicked
File "/usr/lib64/python2.5/site-packages/firstboot/interface.py", line 147, in advance
result = module.apply(self, self.testing)
File "/usr/share/firstboot/modules/create_user.py", line 89, in apply
elif not userGroupCheck.isPasswordOk(password, self.passwordEntry):
File "/usr/share/system-config-users/userGroupCheck.py", line 145, in isPasswordOk
clerror = cracklib.FascistCheck (str)
ValueError: it is based on a dictionary word
Since there is a problem, firstboot will exit.
Please file a bug against 'firstboot' in the Red Hat
bug tracking system at http://www.redhat.com/bugzilla.
A copy of the debug output has been saved to /tmp/firstboot-ITfQoz
Be sure to attach that file to the bug report.
Looks like cracklib has changed its error reporting a bit and system-config-users needs to be made aware of it. The following patch should take care of it.
diff -ru system-config-users-1.2.81/src/userGroupCheck.py system-config-users-1.2.81.NEW/src/userGroupCheck.py
--- system-config-users-1.2.81/src/userGroupCheck.py 2008-10-30 12:39:20.000000000 -0400
+++ system-config-users-1.2.81.NEW/src/userGroupCheck.py 2008-12-02 10:16:27.000000000 -0500
@@ -142,7 +142,11 @@
if not have_cracklib:
- clerror = cracklib.FascistCheck (str)
+ clerror = cracklib.FascistCheck (str)
+ except ValueError, e:
+ clerror = e.msg
# translate error message
clerror = _(clerror)
Thanks for the patch, applied in the upstream repo.
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.
More information and reason for this action is here:
fixed since 1.2.83