Teach passwd about a new "mixpasswordcase" login.conf parameter. If this
parameter is missing, or specified as above, then passwd behaves as normal when the user enters an all lower case password -- i.e., it prompts them to use mixed case, and will only grudgingly accept an all lower case password. If you negate this entry in login.conf, with "mixpasswordcase@", then passwd will allow all lower case passwords without complaining. Approved by: jkh
This commit is contained in:
parent
f42c0d553a
commit
485343f5ff
@ -70,8 +70,17 @@ setting for a user's login class) and not purely alphabetic.
|
||||
Its total length must be less than
|
||||
.Dv _PASSWORD_LEN
|
||||
(currently 128 characters).
|
||||
Numbers, upper case letters and meta characters
|
||||
are encouraged.
|
||||
.Pp
|
||||
The new password should contain a mixture of upper and lower case
|
||||
characters (which may be overridden using the
|
||||
.Xr login.conf 5
|
||||
.if t ``mixpasswordcase''
|
||||
.if n "mixpasswordcase"
|
||||
setting for a user's login class). Allowing lower case passwords may
|
||||
be useful where the password file will be used in situations where only
|
||||
lower case passwords are permissable, such as when using Samba to
|
||||
authenticate Windows clients. In all other situations, numbers, upper
|
||||
case letters and meta characters are encouraged.
|
||||
.Pp
|
||||
Once the password has been verified,
|
||||
.Nm passwd
|
||||
|
Loading…
Reference in New Issue
Block a user