diff options
Diffstat (limited to 'files/etc/pam.d/sshd.freebsd')
-rw-r--r-- | files/etc/pam.d/sshd.freebsd | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/files/etc/pam.d/sshd.freebsd b/files/etc/pam.d/sshd.freebsd index 1f81b48..e00fb13 100644 --- a/files/etc/pam.d/sshd.freebsd +++ b/files/etc/pam.d/sshd.freebsd @@ -8,6 +8,11 @@ account required pam_unix.so session required /usr/local/lib/security/pam_krb5.so session required /usr/local/lib/pam_mkhomedir.so mode=0700 +$(if [ "$BOXCONF_VIRTUALIZATION_TYPE" != jail ] && [ "${enable_autofs:-}" != false ]; then +cat <<EOF +session optional pam_exec.so /usr/local/libexec/pam-create-local-homedir +EOF +fi) password sufficient /usr/local/lib/security/pam_krb5.so try_first_pass password required pam_unix.so no_warn try_first_pass |