Debian Codegraph @

etc/README

raw
1 Pam-script will look for the following scripts (or programs) in this
2 directory. Only doing so if pam_script.so is included in the PAM stack
3 for module-types of auth, account, password, and session respectively:
4 pam_script_auth
5 pam_script_acct
6 pam_script_passwd
7 pam_script_ses_open
8 pam_script_ses_close
9
10 The scripts can be symbolic links or not exist at all as the case may
11 be. However, if the script is used, then it will receive
12 several environment variables:
13 PAM_SERVICE - the application that's invoking the PAM stack
14 PAM_TYPE - the module-type (e.g. auth,account,session,password)
15 PAM_USER - the user being authenticated into
16 PAM_RUSER - the remote user, the user invoking the application
17 PAM_RHOST - remote host
18 PAM_TTY - the controlling tty
19 PAM_AUTHTOK - password in readable text
20 PAM_OLDAUTHTOK - old password in readable text
21
22 Also the scripts will receive on the command line the arguments
23 sent to pam_script.so as configured in the PAM configuration file(s).
24 Whatever arguments that are not needed by pam_script.so are ignored and
25 just passed on.
26
27 The scripts must return an exit value of 0 if successful with
28 regards to its purpose; else return a non-zero exit value. The
29 pam_script.so module does not interpret non-zero values as anything else
30 except as the appropriate failure for the given module-type.
31
32 The pam_script tool can be used to create the links as needed.
33 For example, if the script or program is named "foobar" then the links
34 can be created with
35
36 env PAMSCRIPTDIR=. ./pam_script -v -x -s all foobar
37
38 run "./pam_script -h" for more options and further information.
39