|
Lines 21-27
Link Here
|
| 21 |
- The options accepted by the pam_skey.so module are different, as |
21 |
- The options accepted by the pam_skey.so module are different, as |
| 22 |
described below. |
22 |
described below. |
| 23 |
|
23 |
|
| 24 |
Four options are accepted by the pam_skey.so module: |
24 |
Five options are accepted by the pam_skey.so module: |
| 25 |
debug - This option turns on debug logging. |
25 |
debug - This option turns on debug logging. |
| 26 |
try_first_pass - This option tells the module to first try using |
26 |
try_first_pass - This option tells the module to first try using |
| 27 |
the authentication token passed from the |
27 |
the authentication token passed from the |
|
Lines 44-49
Link Here
|
| 44 |
cause the module to pass the given password to the |
44 |
cause the module to pass the given password to the |
| 45 |
next module in the authentication stack (usually |
45 |
next module in the authentication stack (usually |
| 46 |
pam_unix.so with the try_first_pass option). |
46 |
pam_unix.so with the try_first_pass option). |
|
|
47 |
require_skey - This options tells the module to require S/Key |
| 48 |
authentication if the user has S/Key set. When |
| 49 |
this option is set, it is possible to require both |
| 50 |
S/Key and other authentication method (like |
| 51 |
password) for successful login. This is mutually |
| 52 |
exclusive with no_default_skey. |
| 47 |
|
53 |
|
| 48 |
The exact behavior of pam_skey.so is detailed below: |
54 |
The exact behavior of pam_skey.so is detailed below: |
| 49 |
|
55 |
|
|
Lines 54-74
Link Here
|
| 54 |
if it is a valid response to the current S/Key challenge. If so, |
60 |
if it is a valid response to the current S/Key challenge. If so, |
| 55 |
return PAM_SUCCESS. |
61 |
return PAM_SUCCESS. |
| 56 |
3a. If the token is invalid and use_first_pass is enabled, return |
62 |
3a. If the token is invalid and use_first_pass is enabled, return |
| 57 |
PAM_IGNORE. |
63 |
PAM_IGNORE (or PAM_AUTHERR if require_skey is set). |
| 58 |
4. If no_default_skey is enabled, issue a "Password: " prompt. |
64 |
4. If no_default_skey is enabled, issue a "Password: " prompt. |
| 59 |
4a. If the response is anything besides "s/key" (case insensitive), |
65 |
4a. If the response is anything besides "s/key" (case insensitive), |
| 60 |
store it as the authentication token and return PAM_IGNORE. |
66 |
store it as the authentication token and return PAM_IGNORE. |
| 61 |
5. Display the current S/Key challenge and request a response, with |
67 |
5. Display the current S/Key challenge and request a response, with |
| 62 |
input not echoed. If no_default_skey is enabled, this will only be |
68 |
input not echoed. If no_default_skey or require_skey is enabled, |
| 63 |
an S/Key response request; otherwise, it will request either an |
69 |
this will only be an S/Key response request; otherwise, it will |
| 64 |
S/Key response or a system passsword. |
70 |
request either an S/Key response or a system passsword. |
| 65 |
5a. If an empty response is given, request the S/Key response again, |
71 |
5a. If an empty response is given, request the S/Key response again, |
| 66 |
this time with input echoed. |
72 |
this time with input echoed. |
| 67 |
5b. If the response is a valid S/Key response, return PAM_SUCCESS. |
73 |
5b. If the response is a valid S/Key response, return PAM_SUCCESS. |
| 68 |
Otherwise, return PAM_AUTHERR. |
74 |
Otherwise, return PAM_AUTHERR. |
| 69 |
6. If the response is a valid S/Key response, return PAM_SUCCESS. |
75 |
6. If the response is a valid S/Key response, return PAM_SUCCESS. |
| 70 |
7. Otherwise, if no_default_skey is enabled (the user specifically |
76 |
7. Otherwise, if no_default_skey or require_skey is enabled (the user |
| 71 |
requested "s/key" authentication), return PAM_AUTHERR. |
77 |
specifically requested "s/key" authentication), return PAM_AUTHERR. |
| 72 |
8. Otherwise, store the response as the authentication token and |
78 |
8. Otherwise, store the response as the authentication token and |
| 73 |
return PAM_IGNORE. |
79 |
return PAM_IGNORE. |
| 74 |
|
80 |
|