# PAM stack for the Rikkiti lock screen (rikkiti-locker, service "rikkiti-lock").
#
# The locker only ever re-authenticates the user who is already logged in, so it
# does NOT need to be setuid root: pam_unix delegates shadow verification to the
# setuid helper /sbin/unix_chkpwd when the caller isn't root. Keep this stack
# auth-only and minimal — the session is already established; we're just proving
# the person at the keyboard is the owner before unlocking.
#
# pam_gnome_keyring unlocks the login keyring with the same password if it was
# locked meanwhile (as Debian's greetd stack does at login). The leading "-" skips
# it quietly where the module isn't installed.
#%PAM-1.0
auth     include   common-auth
-auth    optional  pam_gnome_keyring.so

account  include   common-account

# A password that has expired is changed right there on the lock screen (pam_chauthtok), as at login.
password include   common-password

# No session management here — the locker authenticates and exits.
