]> arthur.barton.de Git - netatalk.git/commitdiff
PAM config for FreeBSD
authorfranklahm <franklahm>
Mon, 23 Nov 2009 20:09:50 +0000 (20:09 +0000)
committerfranklahm <franklahm>
Mon, 23 Nov 2009 20:09:50 +0000 (20:09 +0000)
macros/pam-check.m4

index f900cd45bacd1eeaac321f99a3b2463eb4be1bd3..454fce376a6816f21650edad9eff9bac591792b6 100644 (file)
@@ -1,4 +1,4 @@
-dnl $Id: pam-check.m4,v 1.4 2009-11-23 18:29:50 franklahm Exp $
+dnl $Id: pam-check.m4,v 1.5 2009-11-23 20:09:50 franklahm Exp $
 dnl PAM finding macro
 
 AC_DEFUN([AC_PATH_PAM], [
@@ -90,6 +90,14 @@ AC_DEFUN([AC_PATH_PAM], [
            PAM_ACCOUNT=system-auth
            PAM_PASSWORD=system-auth
            PAM_SESSION=system-auth
+        dnl FreeBSD
+        elif test -f "$pampath/system" ; then
+           PAM_DIRECTIVE=include
+           PAM_AUTH=system
+           PAM_ACCOUNT=system
+           PAM_PASSWORD=system
+           PAM_SESSION=system
+        dnl Fallback
         else
            PAM_DIRECTIVE=required
            PAM_AUTH=pam_unix.so