kanidm/unix_integration/pam_kanidm/debian/kanidm.pam
Jinna Kiisuo 3f47d7f008 fix: PAM on Debian, enable use_first_pass by default (#3326)
Since we use Debian's PAM autoconf, pam_unix isn't disabled and remains active.
This means pam_unix triggers first and pam_kanidm should use the password it already tried to match to a local user.

This change also moves the postinst hook for PAM config correctly to the libpam-kanidm package,
since that's the one that delivers the config that needs a reinstall!
2025-02-05 10:43:45 +10:00

20 lines
440 B
Plaintext

Name: Kanidm Authentication
Default: yes
Priority: 128
Auth-Type: Primary
Auth:
[success=end new_authtok_reqd=done default=ignore] pam_kanidm.so ignore_unknown_user use_first_pass
Account-Type: Primary
Account:
[success=end new_authtok_reqd=done default=ignore] pam_kanidm.so ignore_unknown_user
Session-Type: Additional
Session:
optional pam_kanidm.so
Password-Type: Additional
Password:
optional pam_kanidm.so