l usershadow: use wrappers for ssh login
This commit is contained in:
parent
0cba9735c5
commit
1acb5f9fd8
@ -22,7 +22,7 @@
|
|||||||
environment.systemPackages = [ usershadow ];
|
environment.systemPackages = [ usershadow ];
|
||||||
lass.usershadow.path = "${usershadow}";
|
lass.usershadow.path = "${usershadow}";
|
||||||
security.pam.services.sshd.text = ''
|
security.pam.services.sshd.text = ''
|
||||||
auth required pam_exec.so expose_authtok ${usershadow}/bin/verify_pam ${cfg.pattern}
|
auth required pam_exec.so expose_authtok /run/wrappers/bin/shadow_verify_pam ${cfg.pattern}
|
||||||
auth required pam_permit.so
|
auth required pam_permit.so
|
||||||
account required pam_permit.so
|
account required pam_permit.so
|
||||||
session required pam_permit.so
|
session required pam_permit.so
|
||||||
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
security.pam.services.dovecot2 = {
|
security.pam.services.dovecot2 = {
|
||||||
text = ''
|
text = ''
|
||||||
auth required pam_exec.so debug expose_authtok log=/tmp/lol /run/wrappers/bin/shadow_verify_pam ${cfg.pattern}
|
auth required pam_exec.so expose_authtok /run/wrappers/bin/shadow_verify_pam ${cfg.pattern}
|
||||||
auth required pam_permit.so
|
auth required pam_permit.so
|
||||||
account required pam_permit.so
|
account required pam_permit.so
|
||||||
session required pam_permit.so
|
session required pam_permit.so
|
||||||
|
Loading…
Reference in New Issue
Block a user