|
NAMEpam_ocra —
RFC6287 OCRA: OATH Challenge-Response Algorithm PAM module
SYNOPSIS[service-name] module-type control-flag pam_ocra [options]DESCRIPTIONThe OCRA service module for PAM,pam_ocra provides
functionality for only one PAM category: authentication. In terms of the
module-type parameter, this is the
“auth ” feature. It also provides null
functions for the remaining module types.
OCRA Authentication ModuleThe OCRA authentication component (pam_sm_authenticate ()) obtains OCRA credentials from
the the per-user file ~/.ocra. If the
dir parameter is set,
directory/USERNAME will be used. It then provides the
user with an OCRA challenge and verifies the response.
The following options may be passed to the authentication module:
FILES
NOTESLinuxPAM does not handle quoted strings in pam module options. When Linux PAM is uses instead of OpenPAM, options that contain spaces must be surrounded by square brackets instead of quoting the option value.EXAMPLESNote that in the following examples, the pam_ocra.so entry in the PAM configuration file is shown on multiple lines for readability purposes. In the actual configuration file, the module and its options must be on one line.A PAM config file with the following entries: auth required pam_unix.so no_warn null_ok auth required pam_ocra.so \ nodata=succeed fake_prompt=OCRA-1:HOTP-SHA1-6:QN06-PSHA1 Would ask for both a normal login password and an OCRA response from all users. If there is OCRA data associated with the user, then both authentication methods must succeed. A non-OCRA user only has to successfully enter the normal login password. A PAM config file with the following entries: auth requisite pam_unix.so no_warn null_ok auth required pam_ocra.so nodata=fail Would ask for a normal login password from all users, but only ask for an OCRA response if the normal login succeeded and there was OCRA data associated with the user. For users without OCRA data, the login would immediately fail. For both of the above examples, the prompts would appear similar to the following: OCRA Challenge: 123456 OCRA Response: If the options included the following prompt changes: cmsg="%u" rmsg="OTP Response to %c: " or in case LinuxPAM is used: cmsg=%u [rmsg=OTP Response to %c: ]
Then the prompts would look similar to:
2017-07-20T21:26:43Z UTC
OTP Response to 123456:
Similarly if the options included the following prompt changes:
cmsg="%l - Challenge: %3c" rmsg="Response:
"
LinuxPAM version:
[cmsg=%l - Challenge: %3c] [rmsg=Response: ]
Then the prompts would look similar to:
2017-07-20T16:26:43-0500 CDT - Challenge: 123 456
Response:
SEE ALSOpam.conf(5), pam(8), ocra_tool(8)STANDARDS
AUTHORSThepam_ocra module and this manual page were developed
by Stefan Grundmann
Visit the GSP FreeBSD Man Page Interface. |