opnsense-src/contrib/libpam/libpam
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
..
include/security Clean up namespace pollution by prepending underscores to argument names in 2001-12-05 16:31:34 +00:00
Makefile Vendor import Linux PAM 0.75 2001-05-03 09:36:08 +00:00
pam_account.c Vendor import Linux PAM 0.75 2001-05-03 09:36:08 +00:00
pam_auth.c Vendor import Linux PAM 0.75 2001-05-03 09:36:08 +00:00
pam_data.c Vendor import Linux PAM 0.75 2001-05-03 09:36:08 +00:00
pam_delay.c Vendor import Linux PAM 0.75 2001-05-03 09:36:08 +00:00
pam_dispatch.c Vendor import Linux PAM 0.75 2001-05-03 09:36:08 +00:00
pam_end.c Vendor import Linux PAM 0.75 2001-05-03 09:36:08 +00:00
pam_env.c Vendor import Linux PAM 0.75 2001-05-03 09:36:08 +00:00
pam_handlers.c Although the previous went some way towards fixing the pam.conf / pam.d 2001-12-07 00:37:10 +00:00
pam_item.c It's idiotic to return PAM_PERM_DENIED when the item argument is NULL; 2001-11-27 15:35:44 +00:00
pam_log.c Resolve conflicts. 2001-05-03 10:48:56 +00:00
pam_malloc.c Vendor import Linux PAM 0.75 2001-05-03 09:36:08 +00:00
pam_map.c Vendor import Linux PAM 0.75 2001-05-03 09:36:08 +00:00
pam_misc.c Vendor import Linux PAM 0.75 2001-05-03 09:36:08 +00:00
pam_password.c Vendor import Linux PAM 0.75 2001-05-03 09:36:08 +00:00
pam_private.h Clean up namespace pollution by prepending underscores to argument names in 2001-12-05 16:31:34 +00:00
pam_second.c Vendor import Linux PAM 0.75 2001-05-03 09:36:08 +00:00
pam_session.c Vendor import Linux PAM 0.75 2001-05-03 09:36:08 +00:00
pam_start.c Vendor import Linux PAM 0.75 2001-05-03 09:36:08 +00:00
pam_static.c Fix libpam's linker set stuff to use the new API (unbreak world), and get 2001-06-14 01:13:30 +00:00
pam_strerror.c Vendor import Linux PAM 0.75 2001-05-03 09:36:08 +00:00
pam_tokens.h Vendor import Linux PAM 0.75 2001-05-03 09:36:08 +00:00