OpenBSD CVS

CVS log for src/libexec/login_chpass/login_chpass.c


[BACK] Up to [local] / src / libexec / login_chpass

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.21 / (download) - annotate - [select for diffs], Thu Apr 26 12:42:51 2018 UTC (6 years, 1 month ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, HEAD
Changes since 1.20: +2 -11 lines
Diff to previous 1.20 (colored)

Use <fcntl.h> instead of <sys/file.h> for open() and friends.
Delete a bunch of unnecessary #includes and sort to match style(9)
while doing the above cleanup.

ok deraadt@ krw@

Revision 1.20 / (download) - annotate - [select for diffs], Thu Nov 26 19:01:47 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.19: +4 -154 lines
Diff to previous 1.19 (colored)

Delete YP password related code.  As a result, these can also be
pledged.  Keep an eye out for regressions, because they could be
uncomfortable.
ok beck semarie

Revision 1.19 / (download) - annotate - [select for diffs], Sun Oct 25 08:39:26 2015 UTC (8 years, 7 months ago) by ajacoutot
Branch: MAIN
Changes since 1.18: +1 -2 lines
Diff to previous 1.18 (colored)

No need to declare pwd_gensalt; it's unused and gone.
ok tedu@

Revision 1.18 / (download) - annotate - [select for diffs], Thu Oct 22 12:32:33 2015 UTC (8 years, 7 months ago) by tedu
Branch: MAIN
Changes since 1.17: +4 -9 lines
Diff to previous 1.17 (colored)

use crypt_checkpass instead of doing things the hard way with crypt.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Oct 5 17:31:17 2015 UTC (8 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Use explicit_bzero() instead of memset() for zeroing out secrets.
OK deraadt@

Revision 1.16 / (download) - annotate - [select for diffs], Tue Dec 4 02:24:47 2012 UTC (11 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.15: +1 -2 lines
Diff to previous 1.15 (colored)

remove some unnecessary sys/param.h inclusions

Revision 1.15 / (download) - annotate - [select for diffs], Thu Mar 9 19:14:09 2006 UTC (18 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.14: +11 -4 lines
Diff to previous 1.14 (colored)

Foil potential timing attacks by using the correct password hash
instead of "xx".  In practice this means bcrypt() will be used for
non-existent users instead of DES crypt().
Adapted from a patch by Peter Philipp.  OK deraadt@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Apr 14 18:33:42 2005 UTC (19 years, 1 month ago) by biorn
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.13: +1 -2 lines
Diff to previous 1.13 (colored)


drop some krb4 stuff

ok beck@

Revision 1.13 / (download) - annotate - [select for diffs], Tue Sep 28 21:52:40 2004 UTC (19 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.12: +7 -2 lines
Diff to previous 1.12 (colored)

pass lint

Revision 1.12 / (download) - annotate - [select for diffs], Wed Mar 10 21:30:27 2004 UTC (20 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.11: +5 -3 lines
Diff to previous 1.11 (colored)

More checking for a NULL return value from getpass().  otto@ OK

Revision 1.11 / (download) - annotate - [select for diffs], Tue Aug 12 13:14:08 2003 UTC (20 years, 9 months ago) by hin
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.10: +2 -86 lines
Diff to previous 1.10 (colored)

Cleanup obsolete kerberos 4 stuff.

ok millert@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 6 18:45:06 2002 UTC (21 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.9: +8 -16 lines
Diff to previous 1.9 (colored)

ansi; ok millert pvalchev

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 28 01:14:37 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +10 -10 lines
Diff to previous 1.8 (colored)

minor indent cleanup

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jun 2 01:27:15 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

minor KNF

Revision 1.7 / (download) - annotate - [select for diffs], Sun May 26 09:32:08 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

pid_t cleanup

Revision 1.6 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:30 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.5: +9 -9 lines
Diff to previous 1.5 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jan 6 21:53:28 2002 UTC (22 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.4: +13 -8 lines
Diff to previous 1.4 (colored)

Don't let root change it's password via login_l?chpass(8).
At some point in the future, passwd(1) may call these auth methods
at which time we will need a flag to allow root to do a password
change and also to allow account w/o a password to be given one.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Dec 7 04:22:41 2001 UTC (22 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.3: +35 -14 lines
Diff to previous 1.3 (colored)

o Use writev() to send status on the backchannel instead of fdopen()ing
  fd 3 and using stdio.

o Add SIGINT/SIGQUIT signal handler for yp_chpass() now that getpass()
  is interuptible.

o Block SIGINT/SIGQUIT in krb_chpass() until it is made to clean up
  after itself properly.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Dec 6 05:37:03 2001 UTC (22 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.2: +1 -3 lines
Diff to previous 1.2 (colored)

Do not set handler for SIGINT and SIGQUIT to SIG_IGN since it prevents
getpass()/readpassphrase() from being able to restore the tty mode
on keyboard interrupt.  Along with the recent readpassphrase.c commit
this means that if you ^C things that use login scripts (like su(1))
with a non-CBREAK shell your tty mode will be restored nicely.

TODO:
The various login scripts need to install handlers to avoid leaving
turd files or otherwise ending in a bad state.  It would also be
nice to send BI_REJECT to the back channel.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Oct 24 13:06:35 2001 UTC (22 years, 7 months ago) by mpech
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

getopt(3) returns -1 when out of args, not EOF.

millert@ ok

Revision 1.1 / (download) - annotate - [select for diffs], Tue Dec 12 02:30:44 2000 UTC (23 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9

chpass login script; changes local, yp, or kerberos password
will be used when BSD authentication is enabled

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.