diff options
author | des <des@FreeBSD.org> | 2002-04-06 19:28:08 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-04-06 19:28:08 +0000 |
commit | 7b72a8ff6c733bf25da91947ff362fbe055edabd (patch) | |
tree | d30224d67e83d0411d314ae7f0072b41eceea924 /contrib/openpam/lib/pam_authenticate.c | |
parent | 4172a237d231d33a84d23463d15b4e1fdbc353fb (diff) | |
parent | 1b3dab89b21d32019ba4c46b362a853fcdb5a062 (diff) | |
download | FreeBSD-src-7b72a8ff6c733bf25da91947ff362fbe055edabd.zip FreeBSD-src-7b72a8ff6c733bf25da91947ff362fbe055edabd.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r93982,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/openpam/lib/pam_authenticate.c')
-rw-r--r-- | contrib/openpam/lib/pam_authenticate.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/contrib/openpam/lib/pam_authenticate.c b/contrib/openpam/lib/pam_authenticate.c index ff70fb6..20c656e 100644 --- a/contrib/openpam/lib/pam_authenticate.c +++ b/contrib/openpam/lib/pam_authenticate.c @@ -31,7 +31,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/openpam/lib/pam_authenticate.c#8 $ + * $P4: //depot/projects/openpam/lib/pam_authenticate.c#9 $ */ #include <sys/param.h> @@ -53,6 +53,8 @@ pam_authenticate(pam_handle_t *pamh, { int pam_err; + if (flags & ~(PAM_SILENT|PAM_DISALLOW_NULL_AUTHTOK)) + return (PAM_SYMBOL_ERR); pam_err = openpam_dispatch(pamh, PAM_SM_AUTHENTICATE, flags); pam_set_item(pamh, PAM_AUTHTOK, NULL); return (pam_err); @@ -65,3 +67,20 @@ pam_authenticate(pam_handle_t *pamh, * =pam_sm_authenticate * !PAM_IGNORE */ + +/** + * The =pam_authenticate function attempts to authenticate the user + * associated with the pam context specified by the =pamh argument. + * + * The application is free to call =pam_authenticate as many times as it + * wishes, but some modules may maintain an internal retry counter and + * return =PAM_MAXTRIES when it exceeds some preset or hardcoded limit. + * + * The =flags argument is the binary or of zero or more of the following + * values: + * + * =PAM_SILENT + * Do not emit any messages. + * =PAM_DISALLOW_NULL_AUTHTOK + * Fail if the user's authentication token is null. + */ |