From f97d55b623cd851283a42b9807292ce751029218 Mon Sep 17 00:00:00 2001 From: "Andrew G. Morgan" Date: Sun, 24 Jun 2001 22:54:05 +0000 Subject: Relevant BUGIDs: 413162 Purpose of commit: new feature Commit summary: --------------- pam_cracklib enhancements to make use of negative limits. Werner Puschitz gets brownie points for submitting documentation to match! --- CHANGELOG | 5 +- doc/modules/pam_cracklib.sgml | 57 +++++++++++++++--- modules/pam_cracklib/pam_cracklib.c | 111 +++++++++++++++++++++--------------- 3 files changed, 118 insertions(+), 55 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 8308853d..b4956813 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -49,8 +49,11 @@ bug report - outstanding bugs are listed here: 0.76: please submit patches for this section with actual code/doc patches! +* made a pam_cracklib enhancement to interpret -ve limits in a + sensible fashion contributed by Werner Puschitz (Bug 413162 - + agmorgan) * another fix for the latest number of rlimits available to pam_limits -(Bug 424060 - agmorgan) + (Bug 424060 - agmorgan) * removed stale link from pam_pwdb documentation (Bug 433460 - agmorgan) * pam_appl.sgml change - more discussion of choosing a service name (Bug 417512 - agmorgan) diff --git a/doc/modules/pam_cracklib.sgml b/doc/modules/pam_cracklib.sgml index 97b284de..061a8a21 100644 --- a/doc/modules/pam_cracklib.sgml +++ b/doc/modules/pam_cracklib.sgml @@ -169,8 +169,9 @@ are different then the new password will be accepted anyway. other, upper, lower and = 0) This is the maximum credit for having digits in the new password. If you have less than or = 0) This is the maximum credit for having upper case letters in the new password. If you have less than or = 0) This is the maximum credit for having lower case letters in the new password. If you have less than or = 0) This is the maximum credit for having other characters in the new password. If you have less than or +

+And here is another example in case you don't want to use credits: + + +#%PAM-1.0 +# +# These lines require the user to select a password with a minimum +# length of 8 and with at least 1 digit number, 1 upper case letter, +# and 1 other character +# +password required pam_cracklib.so \ + dcredit=-1 ucredit=-1 ocredit=-1 lcredit=0 minlen=8 +password required pam_pwdb.so use_authtok nullok md5 + + + +

+In this example we simply say that the password must have a minimum +length of 8: + + +#%PAM-1.0 +# +# These lines require the user to select a password with a mimimum +# length of 8. He gets no credits and he is not forced to use +# digit numbers, upper case letters etc. +# +password required pam_cracklib.so \ + dcredit=0 ucredit=0 ocredit=0 lcredit=0 minlen=8 +password required pam_pwdb.so use_authtok nullok md5 + + +