fixed homedir creation for sshd

This commit is contained in:
Rouven Seifert 2023-03-10 16:38:57 +01:00
parent adf2320e4a
commit 0ed90c8122
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -89,13 +89,13 @@ in
daemon.enable = true;
};
security.pam.services.login.text = ''
security.pam.services.sshd.text = ''
# Account management.
account sufficient ${pkgs.nss_pam_ldapd}/lib/security/pam_ldap.so
account required pam_unix.so
# Authentication management.
auth sufficient pam_unix.so nullok likeauth try_first_pass
auth sufficient pam_unix.so likeauth try_first_pass
auth sufficient ${pkgs.nss_pam_ldapd}/lib/security/pam_ldap.so use_first_pass
auth required pam_deny.so
@ -107,7 +107,6 @@ in
session required pam_env.so conffile=/etc/pam/environment readenv=0
session required pam_unix.so
session required pam_loginuid.so
session required ${pkgs.linux-pam}/lib/security/pam_lastlog.so silent
session optional pam_mkhomedir.so
session optional ${pkgs.nss_pam_ldapd}/lib/security/pam_ldap.so
session optional ${pkgs.systemd}/lib/security/pam_systemd.so