summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-extended/pam/libpam/pam.d/common-auth
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2019-03-21 20:10:56 +0300
committerGitHub <noreply@github.com>2019-03-21 20:10:56 +0300
commit10bcfa157476d3c5401f2fa1cc36bc29ba508c1e (patch)
treebc590b26d8bdd06b6459c4debaa3041207e5c2cc /meta-phosphor/recipes-extended/pam/libpam/pam.d/common-auth
parent0a33a7ec0b66a3dc40ece30d75cec2afb79ab743 (diff)
parent225376f0a37ee9b6f20626e5f377d8833ea1727f (diff)
downloadopenbmc-10bcfa157476d3c5401f2fa1cc36bc29ba508c1e.tar.xz
Merge pull request #2 from Intel-BMC/update2
Update to latest
Diffstat (limited to 'meta-phosphor/recipes-extended/pam/libpam/pam.d/common-auth')
-rw-r--r--meta-phosphor/recipes-extended/pam/libpam/pam.d/common-auth6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta-phosphor/recipes-extended/pam/libpam/pam.d/common-auth b/meta-phosphor/recipes-extended/pam/libpam/pam.d/common-auth
index 4ac58fb54..7bebd9a6a 100644
--- a/meta-phosphor/recipes-extended/pam/libpam/pam.d/common-auth
+++ b/meta-phosphor/recipes-extended/pam/libpam/pam.d/common-auth
@@ -8,8 +8,10 @@
# traditional Unix authentication mechanisms.
# here are the per-package modules (the "Primary" block)
-auth [success=ok default=1] pam_tally2.so deny=0 unlock_time=0
-auth [success=1 default=ignore] pam_unix.so nullok_secure
+auth [success=ok default=2] pam_tally2.so deny=0 unlock_time=0
+# Try for local user first, and then try for ldap
+auth [success=2 default=ignore] pam_unix.so nullok_secure
+-auth [success=1 default=ignore] pam_ldap.so ignore_unknown_user ignore_authinfo_unavail
# here's the fallback if no module succeeds
auth requisite pam_deny.so
# prime the stack with a positive return value if there isn't one already;