Commit Graph

24 Commits

Author SHA1 Message Date
ad 28a9c7f8da Slight change to previous: rebuild the insecure password db if the expiry
time has changed, not just been set.
2001-08-18 19:42:40 +00:00
ad 1e8e78ed07 Update for pw_mkdb() change: restrict updates to one user's records and/or
the secure database where appropriate.
2001-08-18 19:35:32 +00:00
ad 0db0171979 Back out previous. 2000-10-09 11:14:16 +00:00
ad f03c136f00 When not running as the super-user: if the user's password has expired or is
due to expire within _PASSWORD_WARNDAYS (or the setting from login.conf),
force the user to set a different password than the one they are currently
using. (Yes, it's actually worthwhile doing this.)
2000-09-21 11:11:49 +00:00
ad 34e4fc5261 - Pull in pwd.h since `struct passwd' is now used in extern.h.
- Use pwd_gensalt().
2000-07-06 11:19:39 +00:00
aidan 919f6272de Modularize password changing mechanisms, as proposed in
<20000130122641.A8134@xanadu.kublai.com>:
Subject: PROPOSAL: making passwd pluggable (sort of)
Date: Sun, 30 Jan 2000 12:26:41 -0500
2000-02-14 04:36:20 +00:00
mjl 4b9294447c Wrap login.conf database access in ifdef LOGIN_CAP. 2000-01-12 05:13:32 +00:00
mjl e8a1b04582 Changes to passwd(1) for login.conf. Supported capabilities are
minpasswordlen and passwordtime (expiry time).
2000-01-12 05:04:41 +00:00
mrg 44b9c0ad6e KNF. ensure buffers are nul-terminated. 1998-07-11 15:55:48 +00:00
kleink 9d79695d7e Need <time.h> for time() prototype. 1998-04-02 10:38:25 +00:00
lukem b879efa7db WARNSify, fix .Nm usage 1997-10-19 12:29:35 +00:00
phil e807a0729d Changes to close PR3806. (Different than in PR.)
-- don't lock passwd until data is collected.
-- save a copy of original pw data for pw_copy checking
-- Try several times to lock passwd
1997-07-24 08:53:48 +00:00
thorpej 46610bda06 Tidy up printf formats in "don't use all lower case" warning
message.  From Dave Huang <khym@bga.com>, PR #3198.
1997-02-22 01:50:46 +00:00
mrg f9db097104 remove dangerous sprintf and strcpy calls. 1997-02-11 09:29:26 +00:00
tls 28316c21d3 Sync with 4.4BSD-Lite2 (whew!) 1996-12-28 04:30:02 +00:00
thorpej 27643ee095 Slight semantics change: ALWAYS use YP if the system is bound to a
YP server.  This is required if the passwd database is to stay in sync
if this program is run on the YP server.  Note, local passwd database
operations can still be performed by passing the -l flag.

Also, some minor cleanup and RCS id police.
1996-08-09 09:19:33 +00:00
jtc 370990b210 Updated to use new password file functions in libutil.
From Greg Hudson <ghudson@MIT.EDU>.
1996-05-15 21:50:39 +00:00
cgd cfaefa659d needs string.h 1994-12-24 17:27:42 +00:00
deraadt 1f827d4b07 rationalize & cleanup -y/-k/-l code
update man page for -y
yp password setting now works again!
relax passwd setting retry code a teeny bit
1994-01-05 11:20:34 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
brezak d3af035718 Return status instead of exiting. 1993-07-07 12:31:52 +00:00
cgd 86677cb02a changed to use new libcrypt scheme. 1993-04-26 14:42:34 +00:00
proven a19e35bf34 Fixed problem where users with a blank password field can't change their
password.
1993-04-09 21:37:55 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00