2022-06-02 21:47:36 +00:00
|
|
|
{imply "with-smartcard" if "with-smartcard-required"}
|
|
|
|
auth required pam_env.so
|
|
|
|
auth required pam_faildelay.so delay=2000000
|
2023-05-18 06:18:44 +00:00
|
|
|
auth required pam_faillock.so preauth silent {include if "with-faillock"}
|
2023-04-18 13:15:24 +00:00
|
|
|
auth [success=1 default=ignore] pam_succeed_if.so service notin login:gdm:xdm:kdm:kde:xscreensaver:gnome-screensaver:kscreensaver quiet use_uid {include if "with-smartcard-required"}
|
2022-06-02 21:47:36 +00:00
|
|
|
auth [success=done ignore=ignore default=die] pam_sss.so require_cert_auth ignore_authinfo_unavail {include if "with-smartcard-required"}
|
|
|
|
auth sufficient pam_fprintd.so {include if "with-fingerprint"}
|
|
|
|
auth sufficient pam_u2f.so cue {include if "with-pam-u2f"}
|
|
|
|
auth required pam_u2f.so cue {if not "without-pam-u2f-nouserok":nouserok} {include if "with-pam-u2f-2fa"}
|
|
|
|
auth [default=1 ignore=ignore success=ok] pam_usertype.so isregular
|
|
|
|
auth [default=1 ignore=ignore success=ok] pam_localuser.so {exclude if "with-smartcard"}
|
|
|
|
auth [default=2 ignore=ignore success=ok] pam_localuser.so {include if "with-smartcard"}
|
2023-04-18 13:15:24 +00:00
|
|
|
auth [success=done authinfo_unavail=ignore user_unknown=ignore ignore=ignore default=die] pam_sss.so try_cert_auth {include if "with-smartcard"}
|
|
|
|
auth sufficient pam_unix.so {if not "without-nullok":nullok}
|
|
|
|
auth [default=1 ignore=ignore success=ok] pam_usertype.so isregular {include if "with-gssapi"}
|
|
|
|
auth sufficient pam_sss_gss.so {include if "with-gssapi"}
|
2022-06-02 21:47:36 +00:00
|
|
|
auth [default=1 ignore=ignore success=ok] pam_usertype.so isregular
|
|
|
|
auth sufficient pam_sss.so forward_pass
|
2023-05-18 06:18:44 +00:00
|
|
|
auth required pam_faillock.so authfail {include if "with-faillock"}
|
2023-04-18 13:15:24 +00:00
|
|
|
auth optional pam_gnome_keyring.so only_if=login auto_start {include if "with-pam-gnome-keyring"}
|
2022-06-02 21:47:36 +00:00
|
|
|
auth required pam_deny.so
|
|
|
|
|
|
|
|
account required pam_access.so {include if "with-pamaccess"}
|
|
|
|
account required pam_faillock.so {include if "with-faillock"}
|
|
|
|
account required pam_unix.so
|
|
|
|
account sufficient pam_localuser.so {exclude if "with-files-access-provider"}
|
|
|
|
account sufficient pam_usertype.so issystem
|
|
|
|
account [default=bad success=ok user_unknown=ignore] pam_sss.so
|
|
|
|
account required pam_permit.so
|
|
|
|
|
2023-11-28 22:50:54 +00:00
|
|
|
password requisite pam_pwquality.so local_users_only
|
2023-05-18 06:18:44 +00:00
|
|
|
password [default=1 ignore=ignore success=ok] pam_localuser.so {include if "with-pwhistory"}
|
|
|
|
password requisite pam_pwhistory.so use_authtok remember=5 {include if "with-pwhistory"}
|
2023-11-28 22:50:54 +00:00
|
|
|
password sufficient pam_unix.so sha512 shadow {if not "without-nullok":nullok} use_authtok
|
|
|
|
password [success=1 default=ignore] pam_localuser.so
|
2022-06-02 21:47:36 +00:00
|
|
|
password sufficient pam_sss.so use_authtok
|
|
|
|
password required pam_deny.so
|
|
|
|
|
|
|
|
session optional pam_keyinit.so revoke
|
|
|
|
session required pam_limits.so
|
|
|
|
-session optional pam_systemd.so
|
|
|
|
session optional pam_oddjob_mkhomedir.so umask=0077 {include if "with-mkhomedir"}
|
|
|
|
session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
|
|
|
|
session required pam_unix.so
|
|
|
|
session optional pam_sss.so
|
2023-04-18 13:15:24 +00:00
|
|
|
session optional pam_gnome_keyring.so only_if=login auto_start {include if "with-pam-gnome-keyring"}
|