Skip to content

Commit

Permalink
Merge pull request #1 from martbhell/el7_pam_file
Browse files Browse the repository at this point in the history
A few changes to sync the file with EL7
  • Loading branch information
jabl committed Feb 22, 2016
2 parents 8f1c6b1 + 33080b0 commit 0b599df
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions templates/system-auth.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
# User changes will be destroyed the next time authconfig is run.
auth required pam_env.so
auth sufficient pam_unix.so nullok try_first_pass
auth requisite pam_succeed_if.so uid >= 1025 quiet
auth requisite pam_succeed_if.so uid >= 1000 quiet_success
{% if pam_use_sssd %}
auth sufficient pam_sss.so use_first_pass
{% endif %}
auth required pam_deny.so

account required pam_unix.so
account sufficient pam_localuser.so
account sufficient pam_succeed_if.so uid < 500 quiet
account sufficient pam_succeed_if.so uid < 1000 quiet
{% if pam_use_sssd %}
account [default=bad success=ok user_unknown=ignore] pam_sss.so
{% endif %}
account required pam_permit.so

password requisite pam_cracklib.so try_first_pass retry=3 type=
password requisite pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type=
password sufficient pam_unix.so sha512 shadow nis nullok try_first_pass use_authtok
{% if pam_use_sssd %}
password sufficient pam_sss.so use_authtok
Expand All @@ -26,6 +26,7 @@ password required pam_deny.so

session optional pam_keyinit.so revoke
session required pam_limits.so
-session optional pam_systemd.so
session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session required pam_unix.so
{% if pam_use_sssd %}
Expand Down

0 comments on commit 0b599df

Please sign in to comment.