2019-12-07 22:16:59 +00:00
|
|
|
import ./make-test-python.nix ({ ... }:
|
2019-01-29 16:45:26 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
name = "pam-u2f";
|
|
|
|
|
|
|
|
machine =
|
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
security.pam.u2f = {
|
|
|
|
control = "required";
|
|
|
|
cue = true;
|
|
|
|
debug = true;
|
|
|
|
enable = true;
|
|
|
|
interactive = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
2019-12-07 22:16:59 +00:00
|
|
|
machine.wait_for_unit("multi-user.target")
|
|
|
|
machine.succeed(
|
|
|
|
'egrep "auth required .*/lib/security/pam_u2f.so.*debug.*interactive.*cue" /etc/pam.d/ -R'
|
|
|
|
)
|
2019-01-29 16:45:26 +00:00
|
|
|
'';
|
|
|
|
})
|