Commit Graph

106 Commits

Author SHA1 Message Date
des
4d6b787d2d Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
2002-04-22 13:44:47 +00:00
charnier
ad8a79e6a5 Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
des
1e867a64f1 PAMified passwd(1). Some NIS-related issues remain to be solved, but this
should work for everyday use.

Sponsored by:	DARPA, NAI Labs
2002-04-15 03:02:57 +00:00
des
38c9f51633 Remove bogus dependency on rlogin. 2002-04-13 23:31:27 +00:00
imp
1698cb216e remove __P 2002-03-22 01:33:25 +00:00
cjc
51b661db90 Fix world breakage introduced by my recent modifications to
chpass(8). The relations between libc, libpam, chpass, passwd, and
vipw are a mess and probably should be cleaned up.

Submitted by:	Peter Pentchev <roam@ringlet.net>
2002-03-18 12:55:28 +00:00
des
0f2cb9b020 Apply the following mechanical transformations in preparation for
ansification and constification:

    s{\s+__P\((\(.*?\))\)}{$1}g;
    s{\(\s+}{\(}g;
    s{\s+\)}{\)}g;
    s{\s+,}{,}g;
    s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g;
    s{return ([^\(].*?);}{return ($1);}g;
    s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g;
    s{\s+$}{\n};g

Also add $FreeBSD$ where needed.

MFC after:	1 week
2002-02-06 13:30:31 +00:00
alfred
4b6dfb0371 The clnt_create(KEYSERVSOCK, CRYPT_PROG, CRYPT_VERS, "unix") hacks
were removed and replaced them with clnt_tp_create, now the af_local
support is fixed.

I also removed the hack how rpcinfo contacted rpcbind, now we can
relay on clnt_tp_create create the client-handle for us.  Only
rpcbind itself needs a hardcoded socket-path.

Submitted by: mbr

Also add $FreeBSD
2002-02-05 19:26:04 +00:00
ru
bc205d4152 Set BINOWN=root explicitly for setuid root binaries.
This is not "useless", as one may have non-default
setting for BINOWN in make.conf, and we still want
these to be installed setuid root in this case.
2001-09-13 06:48:18 +00:00
dd
911ca14c87 Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
ru
36f138439b mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 14:16:33 +00:00
ru
89596e4538 MAN[1-9] -> MAN. 2001-03-27 10:52:19 +00:00
assar
a8f26efb45 reset uid back to the user before doing kerberised change password.
root permission is not needed and the kerberos library is paranoid
about access control to the ticket file

PR:		bin/20779
2001-03-12 03:52:00 +00:00
markm
51b4362532 Updates for Blowfish password hashing. 2001-03-11 16:37:33 +00:00
ru
0d1334ca0c mdoc(7) police: use the new features of the Nm macro. 2000-11-20 19:21:22 +00:00
ru
a6f5d950d8 Avoid use of direct troff requests in mdoc(7) manual pages. 2000-11-10 17:46:15 +00:00
sheldonh
2a3644510a Correct a few typos, including a mis-represented option (-s instead of
-h for NIS host).

Submitted by:	Peter Avalos <pavalos@theshell.com>
2000-09-18 07:45:47 +00:00
green
aabc443d9c Fix a premature freeing bug found with malloc debugging courtesy John Hay.
Submitted by:	jhay
2000-08-26 03:42:51 +00:00
green
67c40ef892 Add working and easy crypt(3)-switching. Yes, we need a whole new API
for crypt(3) by now.  In any case:

Add crypt_set_format(3) + documentation to -lcrypt.
Add login_setcryptfmt(3) + documentation to -lutil.
Support for switching crypt formats in passwd(8).
Support for switching crypt formats in pw(8).

The simple synopsis is:
edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :)

Reviewed by:	peter
2000-08-22 02:15:54 +00:00
kris
0d1f47825b Buildworld fixes for NO_OPENSSH and NO_OPENSSL
Approved by:	jkh
2000-03-09 06:29:05 +00:00
sheldonh
49c4458c80 Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 12:20:22 +00:00
markm
7926f9a427 Use libcrypto in place of libdes. 2000-02-24 21:06:22 +00:00
nik
ba43d28ef0 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
2000-02-11 14:08:44 +00:00
nik
83b8d2aa7a 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
2000-02-11 13:45:51 +00:00
peter
d44e2d4226 Revert the libcrypt/libmd stuff back to how it was. This should not have
happened as it was working around problems elsewhere (ie: binutils/ld
not doing the right thing according to the ELF design).  libcrypt has
been adjusted to not need the runtime -lmd.  It's still not quite right
(ld is supposed to work damnit) but at least it doesn't impact all the
users of libcrypt in Marcel's cross-build model.
1999-12-18 13:55:17 +00:00
marcel
e32efbad28 Add libmd (or move it after libcrypt). We don't want the linker to be
smart because it will definitely get it wrong. This popped up during
cross-linking.
1999-12-16 10:55:45 +00:00
roger
12f5be6150 Update PicoBSD so it does not need to patch the passwd Makefile. 1999-10-30 09:19:30 +00:00
markm
d8bdd85855 Change edistribution to krb4 in preaparation for K5 1999-09-19 22:26:02 +00:00
peter
cc8565d1c5 Unifdef -DPASSWD_IGNORE_COMMENTS. This wasn't really optional and
we have enough pseudo-options already.
1999-09-06 17:30:03 +00:00
peter
3b842d34e8 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
sheldonh
bc7c4b861c Allow comments and blank lines as advertised in passwd(5).
PR:	12828
Submitted by:	Yasuhiro Fukuma <yasuf@big.or.jp>
1999-07-29 16:30:35 +00:00
grog
6c01d880e5 Clarify when the user gets a prompt for the old password, and that
passwords are not echoed.

Get quotes right in troff.
1999-05-03 00:56:05 +00:00
hoek
a4398bb850 Change references from "passwordperiod" to "passwordtime", since
"passwordtime" is what passwd(1) has actually been using.  I suspect
passwordperiod was the original intent.  I can't figure-out which,
if either, BSDi uses.  If anyone knows...
1999-04-30 18:19:46 +00:00
des
e158dd910e Ignore errors from chflags. This makes it possible to make installworld
with DESTDIR set to an NFS-mounted file system.
1999-02-14 13:56:15 +00:00
markm
cc85e234f3 Back out the new crypt(3) stuff untill we can go through an independant
"make world" to make sure everything works properly.
1999-01-23 08:36:38 +00:00
brandon
24e41a8a15 Added support for multiple hash formats, and new salt generation code.
It selects which hash format to use by checking /etc/auth.conf for
auth_default.  Leaving auth_default disabled will give the current
behaviour (use the same format as is currently used in the password,
or if a new password default to what crypt likes best--des if it exists).
Now you can set it to one of: des, best, md5 or sha1.  best is a synonym
for sha1, currently.
1999-01-22 15:33:54 +00:00
billf
7c2a2707c4 We use login.conf, not login.cap
PR:		doc/8897
Submitted by:	Jonathan Hanna <pangolin@home.com>
1998-11-30 22:41:58 +00:00
markm
a486b8dd50 Use KJH's auth.conf parser to turn on/off Kerberos in userland. 1998-10-09 06:38:33 +00:00
obrien
18dba2fe21 Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:06 +00:00
steve
0cea0e8d80 The host commandline option is -h and not -s.
PR:		7703
Submitted by:	Yoshishige Arai <ryo2@on.rim.or.jp>
1998-08-24 00:56:20 +00:00
markm
ec4dc9550e Fix LIBDIR (for aout/ELF). 1998-08-06 21:41:13 +00:00
jkoshy
5a379d943a Use the correct name of the login.conf(5) capability (`passwordperiod' ->
`passwordtime').
1998-05-19 03:48:07 +00:00
bde
3325f91b7d Fixed missing dependencies on headers generated by rpcgen, as usual.
Removed bogus dependencies of generated .c files on generated headers.
Sorted sources lists.
1998-05-10 16:01:36 +00:00
bde
d3106031d1 Ifdefed conditionally-unused variables. 1998-03-23 14:14:24 +00:00
ache
e4040eea6a Prevent passwd locking database forever waiting for user input
Submitted by: Antti Kaipila <anttik@iki.fi>
1998-03-07 21:42:07 +00:00
bde
c02d629c5f Fixed `make -jN' for large N, as usual. 1998-03-06 14:02:04 +00:00
steve
5827120f0a Type fix: when -> with
PR:		5420
Submitted by:	Jonathan Hanna <jh@pc-21490.bc.rogers.wave.ca>
1998-01-03 19:14:02 +00:00
markm
991f2e7747 Changes for KTH KerberosIV.
Also quieten -Wall a bit.
1997-09-28 08:57:24 +00:00
wosch
fde8a8ec46 spelling corrections.
PR: docs/4450
Submitted by: josh@quick.net
1997-09-13 16:01:53 +00:00
charnier
9aa2e32f16 Cosmetic in usage string and err() messages. 1997-07-31 06:57:47 +00:00