--- /dev/null
+# cups: auth account password session
+auth sufficient pam_securityserver.so
+auth sufficient pam_unix.so
+auth required pam_deny.so
+account required pam_permit.so
+password required pam_deny.so
+session required pam_permit.so
AC_DEFINE_UNQUOTED(CUPS_DEFAULT_LOG_FILE_PERM, 0$CUPS_LOG_FILE_PERM)
dnl Default FatalErrors
-AC_ARG_WITH(fatal_errors, [ --with-fatal-errors set default FatalErrors value, default=config],
+AC_ARG_WITH(fatal_errors, [ --with-fatal-errors set default FatalErrors value, default=config],
CUPS_FATAL_ERRORS="$withval",
CUPS_FATAL_ERRORS="config")
AC_SUBST(CUPS_FATAL_ERRORS)
dnl
dnl PAM stuff for the Common UNIX Printing System (CUPS).
dnl
-dnl Copyright 2007 by Apple Inc.
+dnl Copyright 2007-2008 by Apple Inc.
dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
dnl
dnl These coded instructions, statements, and computer programs are the
dnl
AC_ARG_ENABLE(pam, [ --enable-pam turn on PAM support, default=yes])
+AC_ARG_WITH(pam_module, [ --with-pam-module specify the PAM module to use, default=auto])
dnl Don't use PAM with AIX...
if test $uname = AIX; then
case "$uname" in
Darwin*)
# Darwin, MacOS X
- PAMFILE="pam.darwin"
+ if test "x$ac_with_pam_module" != x; then
+ PAMFILE="pam.$ac_with_module"
+ elif test -f /usr/lib/pam/pam_opendirectory.so; then
+ PAMFILE="pam.opendirectory"
+ else
+ PAMFILE="pam.securityserver"
+ fi
;;
+
IRIX)
# SGI IRIX
PAMFILE="pam.irix"
;;
+
*)
# All others; this test might need to be updated
# as Linux distributors move things around...
- for mod in pam_unix2.so pam_unix.so pam_pwdb.so; do
- if test -f /lib/security/$mod; then
- PAMMOD="$mod"
- break;
- fi
- done
+ if test "x$ac_with_pam_module" != x; then
+ PAMMOD="pam_${ac_with_module}.so"
+ else
+ for mod in pam_unix2.so pam_unix.so pam_pwdb.so; do
+ if test -f /lib/security/$mod; then
+ PAMMOD="$mod"
+ break;
+ fi
+ done
+ fi
PAMFILE="pam.std"
;;