Guest User

Untitled

a guest
Oct 8th, 2019
573
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. # here are the per-package modules (the "Primary" block)
  2. auth [success=5 default=ignore] pam_krb5.so minimum_uid=1000
  3. auth [success=4 default=die] pam_unix.so nullok_secure try_first_pass
  4. auth [success=3 default=ignore] pam_sss.so use_first_pass
  5. auth [success=2 default=ignore] pam_ccreds.so minimum_uid=1000 action=validate use_first_pass
  6. auth [success=1 default=ignore] pam_ccreds.so minimum_uid=1000 action=update
  7.  
  8. # deny if the above fail
  9. auth requisite pam_deny.so
  10.  
  11. # Skip DUO Auth for sudo
  12. auth [success=3 default=ignore] pam_succeed_if.so service = sudo
  13. # Skip DUO Auth for local accounts
  14. auth [success=2 default=ignore] pam_succeed_if.so uid <= 5000
  15. # Otherwise Require DUO Auth
  16. auth [success=1 default=die] /lib64/security/pam_duo.so
  17.  
  18. # here's the fallback if no module succeeds
  19. auth requisite pam_deny.so
  20. # prime the stack with a positive return value if there isn't one already;
  21. # this avoids us returning an error just because nothing sets a success code
  22. # since the modules above will each just jump around
  23. auth required pam_permit.so
  24. # and here are more per-package modules (the "Additional" block)
  25. auth optional pam_ccreds.so minimum_uid=1000 action=store
  26. auth optional pam_cap.so
Advertisement
Add Comment
Please, Sign In to add comment