]> granicus.if.org Git - linux-pam/commit
pam_cracklib: Add maxclassrepeat, gecoscheck checks and remove unused difignore.
authorTomas Mraz <tmraz@fedoraproject.org>
Mon, 30 Apr 2012 13:03:32 +0000 (15:03 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Mon, 30 Apr 2012 13:08:20 +0000 (15:08 +0200)
commit422c19520fb814cfd8edd84d7989f4c52acbfa03
treebd3a6759bd75db54d47e58619fe15326a071af29
parentcf9c75be753a3c12fdecb9f4696b8ad1b28dd799
pam_cracklib: Add maxclassrepeat, gecoscheck checks and remove unused difignore.

modules/pam_cracklib/pam_cracklib.c (_pam_parse): Recognize the maxclassrepeat, gecoscheck options. Ignore difignore option.
(simple): Add the check for the same class repetition.
(usercheck): Refactor into wordcheck().
(gecoscheck): New test for words from the GECOS field.
(password_check): Call the gecoscheck().
(pam_sm_chauthtok): Drop the diff_ignore from options struct.
modules/pam_cracklib/pam_cracklib.8.xml: Document the maxclassrepeat and gecoscheck checks, update the documentation of the difok test.
modules/pam_cracklib/pam_cracklib.8.xml
modules/pam_cracklib/pam_cracklib.c