Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # here are the per-package modules (the "Primary" block)
- auth [success=5 default=ignore] pam_krb5.so minimum_uid=1000
- auth [success=4 default=die] pam_unix.so nullok_secure try_first_pass
- auth [success=3 default=ignore] pam_sss.so use_first_pass
- auth [success=2 default=ignore] pam_ccreds.so minimum_uid=1000 action=validate use_first_pass
- auth [success=1 default=ignore] pam_ccreds.so minimum_uid=1000 action=update
- # deny if the above fail
- auth requisite pam_deny.so
- # Skip DUO Auth for sudo
- auth [success=3 default=ignore] pam_succeed_if.so service = sudo
- # Skip DUO Auth for local accounts
- auth [success=2 default=ignore] pam_succeed_if.so uid <= 5000
- # Otherwise Require DUO Auth
- auth [success=1 default=die] /lib64/security/pam_duo.so
- # 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;
- # this avoids us returning an error just because nothing sets a success code
- # since the modules above will each just jump around
- auth required pam_permit.so
- # and here are more per-package modules (the "Additional" block)
- auth optional pam_ccreds.so minimum_uid=1000 action=store
- auth optional pam_cap.so
Advertisement
Add Comment
Please, Sign In to add comment