repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Release NixOS 23.11
[NixPkgs.git]
/
nixos
/
tests
/
pam
/
pam-u2f.nix
blob
46e307a3f125ab7e1a09a5d1e0901d249e8210f0
1
import ../make-test-python.nix ({ ... }:
2
3
{
4
name = "pam-u2f";
5
6
nodes.machine =
7
{ ... }:
8
{
9
security.pam.u2f = {
10
control = "required";
11
cue = true;
12
debug = true;
13
enable = true;
14
interactive = true;
15
origin = "nixos-test";
16
};
17
};
18
19
testScript =
20
''
21
machine.wait_for_unit("multi-user.target")
22
machine.succeed(
23
'egrep "auth required .*/lib/security/pam_u2f.so.*cue.*debug.*interactive.*origin=nixos-test" /etc/pam.d/ -R'
24
)
25
'';
26
})