Commit Graph

22 Commits

Author SHA1 Message Date
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 4f10733450 Fix yppasswd part of passwd. This has never worked since the
password map was split and master.passwd.byname was introduced.

XXX This is a temporary fix until luke finds some time to add
the necessary support glue to libc for TRT.
1999-12-23 01:02:52 +00:00
simonb 299578ebd5 Spell "privilege" correctly (correct spelling from Jonathan Stone). 1999-08-16 02:59:22 +00:00
mycroft cc06efc9db const poisoning. 1998-07-26 22:15:38 +00:00
mrg 6f2f0bef2f avoid print extra : as noted by Benjamin Lorenz <lorenz@ps.uni-sb.de> in bin/5745 1998-07-12 15:18:55 +00:00
mrg 44b9c0ad6e KNF. ensure buffers are nul-terminated. 1998-07-11 15:55:48 +00:00
tv d18b50bbf4 Added test to allow fallback to local password database if YP passwd map
is not found.  Fixes both PRs 4142 and 4557 (4558).  Still fails properly
if user is in YP and not in local database.  Man page fixed to reflect
current logic behind falling back, changed since YP was made default some
time ago.
1997-11-21 20:28:33 +00:00
lukem b879efa7db WARNSify, fix .Nm usage 1997-10-19 12:29:35 +00:00
lukem 43b1f9b62a * free up data after a failed yp_match()
* simplify a two case switch into an if statement...
* remove use of register
1997-05-21 02:09:51 +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 bbe8c40877 Fix a semantic problem reported by Chuck Cranor:
If a user wishes to change a password on a system running YP, and
the master server is not running rpc.yppasswdd, passwd(1) would fail,
even if the user had a local entry.  Fix this by checking for local
entry if master is not running rpc.yppasswd iff we defaulted to using
YP (not invoked as "yppasswd" or with "-y").
1996-11-26 23:35:38 +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
phil 49d06ab1d4 Fix bug bin/789 with my fix. 1995-02-08 19:54:12 +00:00
phil ba9c5ac055 Fix the bug that stopped a user from changing his yp passwd when
the entry was ::.  (Also allows root to change the empty password.)
1995-01-15 03:23:48 +00:00
deraadt 5996dc7e00 pr#416 1994-08-17 06:06:42 +00:00
deraadt e538061ae1 few minor things, one pointed out by <kuku@acds.physik.rwth-aachen.de> 1994-01-13 23:42:28 +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 f1b1f173e6 Change NIS--> YP 1993-07-07 12:33:50 +00:00
brezak 96267d0e22 Add YP support. 1993-06-11 00:34:38 +00:00