Fix error handling and add nixos test
This commit is contained in:
parent
c06b3a7142
commit
ef60878471
6 changed files with 335 additions and 20 deletions
15
module.nix
15
module.nix
|
@ -1,6 +1,13 @@
|
|||
{ pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
environment.etc."pam.d/pam_honeypot".text = ''
|
||||
auth optional ${pkgs.pam_honeypot}/lib/pam_honeypot.so user=Admin password=AdminPwdQ1
|
||||
'';
|
||||
security.pam.services.login.rules.auth.pam_honeypot = {
|
||||
enable = true;
|
||||
order = config.security.pam.services.login.rules.auth.unix.order - 10;
|
||||
control = "requisite";
|
||||
modulePath = "${pkgs.pam_honeypot}/lib/libpam_honeypot.so";
|
||||
args = [
|
||||
"user=Admin"
|
||||
"password=AdminPwdQ1"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue