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
nixos/strongswan: update start_action option (#360731)
[NixPkgs.git]
/
nixos
/
tests
/
pam
/
pam-u2f.nix
blob
caa56c30bbce98f988d649c068d73a790b9fa047
1
import ../make-test-python.nix ({ ... }:
2
3
{
4
name = "pam-u2f";
5
6
nodes.machine =
7
{ ... }:
8
{
9
security.pam.u2f = {
10
enable = true;
11
control = "required";
12
settings = {
13
cue = true;
14
debug = true;
15
interactive = true;
16
origin = "nixos-test";
17
# Freeform option
18
userpresence = 1;
19
};
20
};
21
};
22
23
testScript =
24
''
25
machine.wait_for_unit("multi-user.target")
26
machine.succeed(
27
'egrep "auth required .*/lib/security/pam_u2f.so.*cue.*debug.*interactive.*origin=nixos-test.*userpresence=1" /etc/pam.d/ -R'
28
)
29
'';
30
})