summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-extended/pam/libpam/pam.d/common-auth
diff options
context:
space:
mode:
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;