aboutsummaryrefslogtreecommitdiff
path: root/files/etc/pam.d
diff options
context:
space:
mode:
Diffstat (limited to 'files/etc/pam.d')
-rw-r--r--files/etc/pam.d/login.freebsd5
-rw-r--r--files/etc/pam.d/sshd.freebsd5
2 files changed, 10 insertions, 0 deletions
diff --git a/files/etc/pam.d/login.freebsd b/files/etc/pam.d/login.freebsd
index ae50bbe..bb215ec 100644
--- a/files/etc/pam.d/login.freebsd
+++ b/files/etc/pam.d/login.freebsd
@@ -12,6 +12,11 @@ session required pam_lastlog.so no_fail
session required pam_xdg.so
session required /usr/local/lib/security/pam_krb5.so
session optional /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
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