[Draft] Fixes for the mail configuration #22
1 changed files with 2 additions and 3 deletions
|
@ -89,13 +89,13 @@ in
|
||||||
daemon.enable = true;
|
daemon.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
security.pam.services.login.text = ''
|
security.pam.services.sshd.text = ''
|
||||||
# Account management.
|
# Account management.
|
||||||
account sufficient ${pkgs.nss_pam_ldapd}/lib/security/pam_ldap.so
|
account sufficient ${pkgs.nss_pam_ldapd}/lib/security/pam_ldap.so
|
||||||
account required pam_unix.so
|
account required pam_unix.so
|
||||||
|
|
||||||
# Authentication management.
|
# 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 sufficient ${pkgs.nss_pam_ldapd}/lib/security/pam_ldap.so use_first_pass
|
||||||
auth required pam_deny.so
|
auth required pam_deny.so
|
||||||
|
|
||||||
|
@ -107,7 +107,6 @@ in
|
||||||
session required pam_env.so conffile=/etc/pam/environment readenv=0
|
session required pam_env.so conffile=/etc/pam/environment readenv=0
|
||||||
session required pam_unix.so
|
session required pam_unix.so
|
||||||
session required pam_loginuid.so
|
session required pam_loginuid.so
|
||||||
session required ${pkgs.linux-pam}/lib/security/pam_lastlog.so silent
|
|
||||||
session optional pam_mkhomedir.so
|
session optional pam_mkhomedir.so
|
||||||
session optional ${pkgs.nss_pam_ldapd}/lib/security/pam_ldap.so
|
session optional ${pkgs.nss_pam_ldapd}/lib/security/pam_ldap.so
|
||||||
session optional ${pkgs.systemd}/lib/security/pam_systemd.so
|
session optional ${pkgs.systemd}/lib/security/pam_systemd.so
|
||||||
|
|
Loading…
Reference in a new issue