freebsd-dev/contrib
Dag-Erling Smørgrav e9ae7bc234 This commit disables chain caching.
Chain caching is a feature of Linux-PAM, where pam_authenticate() and
pam_open_session() "freeze" the chain so that their companion
primitive (pam_setcred() and pam_close_session() respectively) will
call the exact same modules, skipping those that failed in the
previous call.

There are several reasons not to do this, the most prominent of which
is that it makes it impossible to call pam_setcred() without first
calling pam_authenticate() - which is perfectly valid according to
DCE/RFC 86.0 and XSSO, and is necessary to make 'login -f' work.

Instead of chain caching, implement something similar to the way
Solaris' libpam behaves: pam_setcred treats "sufficient" modules as if
they were "required", i.e. does not break the chain when they succeed.

PAM modules whose pam_sm_setcred() should not be called unless their
pam_sm_authenticate() succeeded can simply set a state variable using
pam_set_data() in pam_sm_authenticate(), and use pam_get_data() to
check it in pam_sm_setcred().

Sponsored by:	DARPA, NAI Labs
2002-01-24 15:30:03 +00:00
..
amd Userland part of nfs client/server split and cleanup. 2001-09-18 23:34:44 +00:00
awk Tighten up the random seeding a little bit more. getpid() alone only 2001-11-03 02:14:10 +00:00
bc Remove files that were not part of the bc-1.06 import. 2001-11-04 06:20:02 +00:00
bind *** empty log message *** 2001-10-01 08:43:58 +00:00
binutils This commit was generated by cvs2svn to compensate for changes in r88237, 2001-12-20 02:23:44 +00:00
bzip2 Virgin import (trimmed) of Bzip2 version 1.0.1. 2001-06-21 18:37:17 +00:00
com_err SEE ALSO is the special name, and should not be taken in quotes, 2001-02-16 11:35:39 +00:00
cpio Don't attempt to parse %c 2001-03-21 21:17:54 +00:00
cvs oops, forgot to commit man page for cvs changes 2001-09-21 19:05:36 +00:00
diff Also coerce diff(1) into working the other way (from no-\n to \n). 2000-09-15 11:35:16 +00:00
file This commit was generated by cvs2svn to compensate for changes in r84685, 2001-10-08 22:50:54 +00:00
gcc Re-initialize gp after a jsr. 2001-08-17 22:54:26 +00:00
gdb Remove the filename_completion_function() extern that conflicts with the 2001-04-14 01:49:32 +00:00
gperf Helper to trim extracted files for use when importing new versions of 2000-10-13 12:36:13 +00:00
groff MFV: Initialize %I register. 2002-01-18 15:28:32 +00:00
ipfilter Backout inclusion of sys/queue.h 2002-01-14 09:19:18 +00:00
isc-dhcp dhclient-script.conf lives in /etc and not /sbin. 2002-01-23 13:56:41 +00:00
less Merge vendor changes onto mainline. 2002-01-07 20:37:09 +00:00
libf2c This commit was generated by cvs2svn to compensate for changes in r88109, 2001-12-18 04:13:58 +00:00
libio Virgin import of GCC 2.95.3's libio -- the C++ iostream facility. 2001-03-19 20:49:58 +00:00
libobjc Virgin import of GCC 2.95.3's libobjc 2001-03-19 20:56:11 +00:00
libpam This commit disables chain caching. 2002-01-24 15:30:03 +00:00
libpcap Merge libpcap 0.6.2 2001-04-03 04:32:48 +00:00
libreadline Move manpages to their original location (cvs copy to doc) 2001-04-21 22:02:18 +00:00
libstdc++ Virgin import of GCC 2.95.3's libstdc++ 2001-03-19 20:51:52 +00:00
lukemftp Import of LukeM's ftp client, version 1.5. 2001-07-19 16:26:14 +00:00
lukemftpd Import of LukeM's ftpd version 1.1. 2001-07-19 16:25:08 +00:00
ncurses This commit was generated by cvs2svn to compensate for changes in r89354, 2002-01-14 15:58:32 +00:00
ntp Merge after 4.1.0 import. 2001-08-29 15:15:59 +00:00
nvi This commit was generated by cvs2svn to compensate for changes in r89010, 2002-01-07 14:26:12 +00:00
one-true-awk Tell how the import was done. 2001-10-27 08:11:44 +00:00
opie Make the -a flag to opiekey(1) actually work as advertised. 2002-01-09 13:36:26 +00:00
patch
perl5 Resolve conflicts. 2000-08-20 09:51:08 +00:00
pnpinfo mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
sendmail Update import information 2001-08-21 01:33:05 +00:00
smbfs This commit was generated by cvs2svn to compensate for changes in r88492, 2001-12-26 15:35:10 +00:00
tcp_wrappers This commit was generated by cvs2svn to compensate for changes in r80260, 2001-07-24 09:05:00 +00:00
tcpdump Quick hack to print out the non-standard pppoe used by 3com 2001-09-27 08:02:27 +00:00
tcsh This commit was generated by cvs2svn to compensate for changes in r83098, 2001-09-05 17:49:32 +00:00
telnet mdoc(7) police: remove -r from SYNOPSIS, sort -p in DESCRIPTION. 2001-12-14 14:41:07 +00:00
texinfo Quietly delete duplicate Info entries with --quiet. 2000-01-24 16:05:17 +00:00
top Make top exit if its tty vanishes. 2001-11-04 21:15:52 +00:00
traceroute Fetch the default maximum TTL value from the net.inet.ip.ttl MIB. 2001-06-06 16:12:59 +00:00