Dag-Erling Smørgrav cab8cba36f Although the previous went some way towards fixing the pam.conf / pam.d
problem, it still didn't DTRT for services that did not have a service-
specific policy if /etc/pam.d existed but did not contain an "other"
policy.  This fixes the problems some people have experienced with sudo.
And I almost didn't have to use goto.

The current configuration sequence is:

  1) Look for /etc/pam.d/foo

  2) If PAM_READ_BOTH_CONFS is defined, or step 1) failed, look for
     foo in /etc/pam.conf

  3) Look for /etc/pam.d/other (to fill in the gaps)

  4) If PAM_READ_BOTH_CONFS is defined, or step 3) failed, look for
     other in /etc/pam.conf

I believe this is the intended behaviour of the original code.  The least
surprising behaviour seems to be when PAM_READ_BOTH_CONFS is not defined -
/etc/pam.d/foo will be preferred over /etc/pam.conf, but the latter will
serve as a backup if the former does not exist.

Sponsored by:	DARPA, NAI Labs
2001-12-07 00:37:10 +00:00
..
2001-10-01 08:43:58 +00:00
2001-03-21 21:17:54 +00:00
2001-08-17 22:54:26 +00:00
2000-07-14 09:57:37 +00:00
2001-04-03 04:32:48 +00:00
2001-08-29 15:15:59 +00:00
2000-08-20 09:51:08 +00:00
2001-04-18 15:54:10 +00:00
2001-08-21 01:33:05 +00:00
2001-12-04 16:02:36 +00:00
2001-11-04 21:15:52 +00:00