The NetBSD Project

CVS log for src/lib/libpam/modules/pam_unix/pam_unix.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libpam / modules / pam_unix

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.19 / (download) - annotate - [select for diffs], Wed Oct 26 22:09:37 2022 UTC (3 months, 1 week ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

nix double n, i or g in "ing", in comments and documentation.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Apr 10 09:50:44 2022 UTC (9 months, 3 weeks ago) by andvar
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

fix various typos in comments and output/log messages.

Revision 1.16.24.1 / (download) - annotate - [select for diffs], Mon May 21 04:35:55 2018 UTC (4 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.16: +5 -4 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Sync with HEAD

Revision 1.17 / (download) - annotate - [select for diffs], Wed May 16 13:55:39 2018 UTC (4 years, 8 months ago) by joerg
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.16: +5 -4 lines
Diff to previous 1.16 (colored)

Improve type safety by using the correct enum values.

Revision 1.14.12.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:19 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.14.12.1: +2 -2 lines
Diff to previous 1.14.12.1 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.14.6.1 / (download) - annotate - [select for diffs], Thu May 22 11:36:59 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.14: +6 -7 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 29 22:54:58 2013 UTC (9 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

Fix incorrect types

Revision 1.14.12.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:21:08 2013 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.14: +4 -5 lines
Diff to previous 1.14 (colored)

resync from head

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jun 20 20:54:52 2013 UTC (9 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Changes since 1.14: +4 -5 lines
Diff to previous 1.14 (colored)

use login_getpwclass() everywhere for consistency.

Revision 1.11.28.1.2.1 / (download) - annotate - [select for diffs], Wed Apr 21 05:28:11 2010 UTC (12 years, 9 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.11.28.1: +7 -6 lines
Diff to previous 1.11.28.1 (colored) next main 1.12 (colored)

sync to netbsd-5

Revision 1.11.26.2 / (download) - annotate - [select for diffs], Sat Mar 13 07:31:08 2010 UTC (12 years, 10 months ago) by riz
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.11.26.1: +5 -4 lines
Diff to previous 1.11.26.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

Pull up following revision(s) (requested by drochner in ticket #1336):
	lib/libpam/modules/pam_unix/pam_unix.c: revision 1.14
if changing the password, don't clear PAM_AUTHTOK at the beginning -- this
sabotages external password strength checkers

Revision 1.14 / (download) - annotate - [select for diffs], Wed Nov 18 17:06:23 2009 UTC (13 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.13: +7 -6 lines
Diff to previous 1.13 (colored)

if changing the password, don't clear PAM_AUTHTOK at the beginning -- this
sabotages external password strength checkers

Revision 1.11.28.1 / (download) - annotate - [select for diffs], Wed Jun 17 20:35:12 2009 UTC (13 years, 7 months ago) by bouyer
Branch: netbsd-5-0
CVS Tags: netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.11: +10 -2 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Pull up following revision(s) (requested by tonnerre in ticket #817):
	lib/libpam/modules/pam_unix/pam_unix.c: revision 1.13
Restore the good old UNIX behavior of root password changing: only root
may change the root password.
(Checked that everybody else's password can be changed without any problem,
and checked that root can still change the root password.)

Revision 1.11.26.1 / (download) - annotate - [select for diffs], Wed Jun 17 20:35:08 2009 UTC (13 years, 7 months ago) by bouyer
Branch: netbsd-5
Changes since 1.11: +10 -2 lines
Diff to previous 1.11 (colored)

Pull up following revision(s) (requested by tonnerre in ticket #817):
	lib/libpam/modules/pam_unix/pam_unix.c: revision 1.13
Restore the good old UNIX behavior of root password changing: only root
may change the root password.
(Checked that everybody else's password can be changed without any problem,
and checked that root can still change the root password.)

Revision 1.11.14.1 / (download) - annotate - [select for diffs], Wed Jun 17 20:13:10 2009 UTC (13 years, 7 months ago) by jdc
Branch: netbsd-4-0
Changes since 1.11: +10 -2 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Pull up revision 1.13 (requested by tonnerre in ticket #1326).

Restore the good old UNIX behavior of root password changing: only root
may change the root password.

(Checked that everybody else's password can be changed without any problem,
and checked that root can still change the root password.)

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Wed Jun 17 20:12:31 2009 UTC (13 years, 7 months ago) by jdc
Branch: netbsd-4
Changes since 1.11: +10 -2 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Pull up revision 1.13 (requested by tonnerre in ticket #1326).

Restore the good old UNIX behavior of root password changing: only root
may change the root password.

(Checked that everybody else's password can be changed without any problem,
and checked that root can still change the root password.)

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jun 14 23:23:54 2009 UTC (13 years, 7 months ago) by tonnerre
Branch: MAIN
Changes since 1.12: +10 -2 lines
Diff to previous 1.12 (colored)

Restore the good old UNIX behavior of root password changing: only root
may change the root password.

(Checked that everybody else's password can be changed without any problem,
and checked that root can still change the root password.)

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 26 04:01:14 2009 UTC (14 years ago) by lukem
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

sign-compare fixes

Revision 1.5.2.6 / (download) - annotate - [select for diffs], Mon Jun 12 12:30:26 2006 UTC (16 years, 7 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1
Changes since 1.5.2.5: +3 -1 lines
Diff to previous 1.5.2.5 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Pull up following revision(s) (requested by jnemeth in ticket #1370):
	lib/libpam/modules/pam_unix/pam_unix.c: revision 1.11
PR/30730 force changing password via chsh fails
PR/33502 password aging not working
copy old_pwd to new_pwd before modifying

Revision 1.5.2.4.2.2 / (download) - annotate - [select for diffs], Mon Jun 12 12:30:24 2006 UTC (16 years, 7 months ago) by tron
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE
Changes since 1.5.2.4.2.1: +3 -1 lines
Diff to previous 1.5.2.4.2.1 (colored) to branchpoint 1.5.2.4 (colored) next main 1.5.2.5 (colored)

Pull up following revision(s) (requested by jnemeth in ticket #1370):
	lib/libpam/modules/pam_unix/pam_unix.c: revision 1.11
PR/30730 force changing password via chsh fails
PR/33502 password aging not working
copy old_pwd to new_pwd before modifying

Revision 1.11 / (download) - annotate - [select for diffs], Tue May 30 19:48:07 2006 UTC (16 years, 8 months ago) by jnemeth
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, mjf-devfs2-base, mjf-devfs2, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: netbsd-5-0, netbsd-5, netbsd-4-0, netbsd-4
Changes since 1.10: +5 -3 lines
Diff to previous 1.10 (colored)

PR/30730 force changing password via chsh fails
PR/33502 password aging not working
copy old_pwd to new_pwd before modifying

Revision 1.5.2.4.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 17:37:33 2006 UTC (16 years, 10 months ago) by riz
Branch: netbsd-3-0
Changes since 1.5.2.4: +9 -8 lines
Diff to previous 1.5.2.4 (colored)

Pull up following revision(s) (requested by jnemeth in ticket #1206):
	lib/libpam/modules/pam_unix/pam_unix.c: revision 1.10
Fix Coverity run 5, issue 2498 -- uninitialized variable
Fix Coverity run 5, issue 707 -- unreachable code
Approved by Christos.

Revision 1.5.2.5 / (download) - annotate - [select for diffs], Mon Mar 20 17:37:27 2006 UTC (16 years, 10 months ago) by riz
Branch: netbsd-3
Changes since 1.5.2.4: +9 -8 lines
Diff to previous 1.5.2.4 (colored) to branchpoint 1.5 (colored)

Pull up following revision(s) (requested by jnemeth in ticket #1206):
	lib/libpam/modules/pam_unix/pam_unix.c: revision 1.10
Fix Coverity run 5, issue 2498 -- uninitialized variable
Fix Coverity run 5, issue 707 -- unreachable code
Approved by Christos.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Mar 18 10:06:16 2006 UTC (16 years, 10 months ago) by jnemeth
Branch: MAIN
Changes since 1.9: +11 -10 lines
Diff to previous 1.9 (colored)

Fix Coverity run 5, issue 2498 -- uninitialized variable
Fix Coverity run 5, issue 707 -- unreachable code
Approved by Christos.

Revision 1.5.2.4 / (download) - annotate - [select for diffs], Mon Jul 11 11:30:07 2005 UTC (17 years, 6 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1
Branch point for: netbsd-3-0
Changes since 1.5.2.3: +2 -0 lines
Diff to previous 1.5.2.3 (colored) to branchpoint 1.5 (colored)

Pull up revision 1.9 (requested by lukem in ticket #539):
Safety boots: don't depend upon getpwnam_r() to set pwd to NULL on all
failures, especially if we're going to ignore the return result.

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Mon Jul 11 11:23:34 2005 UTC (17 years, 6 months ago) by tron
Branch: netbsd-3
Changes since 1.5.2.2: +2 -1 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored)

Pull up revision 1.8 (requested by lukem in ticket #539):
check for pwd != in getpw*_r functions.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Apr 19 03:40:16 2005 UTC (17 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.8: +4 -2 lines
Diff to previous 1.8 (colored)

Safety boots: don't depend upon getpwnam_r() to set pwd to NULL on all
failures, especially if we're going to ignore the return result.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Apr 19 03:15:37 2005 UTC (17 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.7: +4 -3 lines
Diff to previous 1.7 (colored)

check for pwd != in getpw*_r functions.

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Mon Apr 4 17:55:36 2005 UTC (17 years, 10 months ago) by tron
Branch: netbsd-3
Changes since 1.5.2.1: +14 -9 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored)

Pull up revision 1.7 (requested by thorpej in ticket #96):
Use getpwnam_r().

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 31 15:11:54 2005 UTC (17 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.6: +16 -11 lines
Diff to previous 1.6 (colored)

Use getpwnam_r().

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Sat Mar 19 17:53:16 2005 UTC (17 years, 10 months ago) by tron
Branch: netbsd-3
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

Pull up revision 1.6 (requested by christos in ticket #22):
Clear the authorization token at the entry of each loop, so that
we get a chance to re-enter.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Mar 17 01:13:59 2005 UTC (17 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

Clear the authorization token at the entry of each loop, so that
we get a chance to re-enter.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Feb 26 02:57:32 2005 UTC (17 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.4: +5 -2 lines
Diff to previous 1.4 (colored)

Make sure to set yppwd.oldpass.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jan 12 03:36:12 2005 UTC (18 years ago) by christos
Branch: MAIN
Changes since 1.3: +11 -6 lines
Diff to previous 1.3 (colored)

adapt to pw_gensalt() change.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jan 11 23:23:33 2005 UTC (18 years ago) by christos
Branch: MAIN
Changes since 1.2: +4 -128 lines
Diff to previous 1.2 (colored)

eliminate the third copy of pwd_gensalt.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Dec 12 08:17:56 2004 UTC (18 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.1: +478 -216 lines
Diff to previous 1.1 (colored)

- NetBSD specific fixes.
- Changes from Jason to use our YP stuff.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Dec 12 06:50:16 2004 UTC (18 years, 1 month ago) by christos
Branch: FREEBSD
CVS Tags: PAM20050226, PAM20041212
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

- Import freebsd's version of libpam as of today (20041212).
- Did not import opie, passwdqc, tacplus. We need to decide what to do
  with them.
- Imported radius and ssh, although they will not work until we
  import libradius and re-structure our tree to install libssh.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Dec 12 06:50:16 2004 UTC (18 years, 1 month ago) by christos
Branch: MAIN

Initial revision

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.




CVSweb <webmaster@jp.NetBSD.org>