1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
4 <refentry id='pam_authenticate'>
6 <refentrytitle>pam_authenticate</refentrytitle>
7 <manvolnum>3</manvolnum>
8 <refmiscinfo class='setdesc'>Linux-PAM Manual</refmiscinfo>
11 <refnamediv id="pam_authenticate-name">
12 <refname>pam_authenticate</refname>
13 <refpurpose>account authentication</refpurpose>
16 <!-- body begins here -->
19 <funcsynopsis id='pam_authenticate-synopsis'>
20 <funcsynopsisinfo>#include <security/pam_appl.h></funcsynopsisinfo>
22 <funcdef>int <function>pam_authenticate</function></funcdef>
23 <paramdef>pam_handle_t *<parameter>pamh</parameter></paramdef>
24 <paramdef>int <parameter>flags</parameter></paramdef>
30 <refsect1 id='pam_authenticate-description'>
31 <title>DESCRIPTION</title>
33 The <function>pam_authenticate</function> function is used to
34 authenticate the user. The user is required to provide an
35 authentication token depending upon the authentication service,
36 usually this is a password, but could also be a finger print.
39 The PAM service module may request that the user enter their
40 username vio the the conversation mechanism (see
42 <refentrytitle>pam_start</refentrytitle><manvolnum>3</manvolnum>
45 <refentrytitle>pam_conv</refentrytitle><manvolnum>3</manvolnum>
46 </citerefentry>). The name of the authenticated user
47 will be present in the PAM item PAM_USER. This item may be
48 recovered with a call to
50 <refentrytitle>pam_get_item</refentrytitle><manvolnum>3</manvolnum>
54 The <emphasis>pamh</emphasis> argument is an authentication
55 handle obtained by a prior call to pam_start().
56 The flags argument is the binary or of zero or more of the
61 <term>PAM_SILENT</term>
64 Do not emit any messages.
69 <term>PAM_DISALLOW_NULL_AUTHTOK</term>
72 The PAM module service should return PAM_AUTH_ERR
73 if the user does not have a registered authentication token.
80 <refsect1 id="pam_authenticate-return_values">
81 <title>RETURN VALUES</title>
84 <term>PAM_ABORT</term>
87 The application should exit immediately after calling
89 <refentrytitle>pam_end</refentrytitle><manvolnum>3</manvolnum>
90 </citerefentry> first.
95 <term>PAM_AUTH_ERR</term>
98 The user was not authenticated.
103 <term>PAM_CRED_INSUFFICIENT</term>
106 For some reason the application does not have sufficient
107 credentials to authenticate the user.
112 <term>PAM_AUTHINFO_UNVAIL</term>
115 The modules were not able to access the authentication
116 information. This might be due to a network or hardware
122 <term>PAM_MAXTRIES</term>
125 One or more of the authentication modules has reached its
126 limit of tries authenticating the user. Do not try again.
131 <term>PAM_SUCCESS</term>
134 The user was successfully authenticated.
139 <term>PAM_USER_UNKNOWN</term>
142 User unknown to authentication service.
149 <refsect1 id='pam_authenticate-see_also'>
150 <title>SEE ALSO</title>
153 <refentrytitle>pam_start</refentrytitle><manvolnum>3</manvolnum>
156 <refentrytitle>pam_setcred</refentrytitle><manvolnum>3</manvolnum>
159 <refentrytitle>pam_chauthtok</refentrytitle><manvolnum>3</manvolnum>
162 <refentrytitle>pam_strerror</refentrytitle><manvolnum>3</manvolnum>
165 <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum>