1PAM_SET_ITEMS(8)                                              PAM_SET_ITEMS(8)
2
3
4

NAME

6       pam_set_items - A PAM test module to set module-specific PAM items
7

SYNOPSIS

9       pam_set_items.so
10

DESCRIPTION

12       PAM modules store data in PAM items. These items are only accessible
13       from module context, not application context as they might include
14       private data (PAM_AUTHTOK normally contains the password). But when
15       testing PAM modules, it’s often nice to make sure a PAM module under
16       test can retrieve data from the stack. The pam_set_items module makes
17       this possible by reading environment variables and setting them as PAM
18       items.
19

OPTIONS

21       None
22

MODULE TYPES PROVIDED

24       All module types (account, auth, password and session) are provided.
25

EXAMPLE

27       Consider an example that tests that pam_unix is able to read a provided
28       password and doesn’t query on its own. The test service file would
29       contain:
30
31           auth required        pam_set_items.so
32           auth required        pam_unix.so
33
34       Then the test would put the item to the test environment with:
35
36           setenv("PAM_AUTHTOK", "secret");
37
38       Then run the PAM conversation.
39
40
41
42                                  2015-11-04                  PAM_SET_ITEMS(8)
Impressum