X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=etc%2Fpam.d%2Fcommon-account;fp=etc%2Fpam.d%2Fcommon-account;h=9d8619edfdc269bf39a77030f4cf178daba510d8;hb=a116da9c969c141b0bb6b574a4f0b425408faab8;hp=963b69665b81883d80b384d4ab534d673ee3bec4;hpb=4dee6af94be87f5f40cfd6624a05e85d03a4a116;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/etc/pam.d/common-account b/etc/pam.d/common-account index 963b696..9d8619e 100644 --- a/etc/pam.d/common-account +++ b/etc/pam.d/common-account @@ -9,5 +9,11 @@ # Default was: #account required pam_unix.so # -# LDAP config based on from http://wiki.debian.org/LDAP/PAM -account required pam_ldap.so +# pam_unix does general checks based on NSS info, so it also works for ldap +# users. +account required pam_unix.so + +# pam_ldap does additional checks (in particular checking the host ldap +# attribute) but needs to be ignored when it does not know about a user. +account [success=ok new_authtok_reqd=ok ignore=ignore user_unknown=ignore default=bad] \ + pam_ldap.so