15c1eca55SDag-Erling Smørgrav.\"- 2856bb440SDag-Erling Smørgrav.\" Copyright (c) 2002 Networks Associates Technology, Inc. 35c1eca55SDag-Erling Smørgrav.\" All rights reserved. 45c1eca55SDag-Erling Smørgrav.\" 55c1eca55SDag-Erling Smørgrav.\" This software was developed for the FreeBSD Project by ThinkSec AS and 65c1eca55SDag-Erling Smørgrav.\" NAI Labs, the Security Research Division of Network Associates, Inc. 75c1eca55SDag-Erling Smørgrav.\" under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the 85c1eca55SDag-Erling Smørgrav.\" DARPA CHATS research program. 95c1eca55SDag-Erling Smørgrav.\" 105c1eca55SDag-Erling Smørgrav.\" Redistribution and use in source and binary forms, with or without 115c1eca55SDag-Erling Smørgrav.\" modification, are permitted provided that the following conditions 125c1eca55SDag-Erling Smørgrav.\" are met: 135c1eca55SDag-Erling Smørgrav.\" 1. Redistributions of source code must retain the above copyright 145c1eca55SDag-Erling Smørgrav.\" notice, this list of conditions and the following disclaimer. 155c1eca55SDag-Erling Smørgrav.\" 2. Redistributions in binary form must reproduce the above copyright 165c1eca55SDag-Erling Smørgrav.\" notice, this list of conditions and the following disclaimer in the 175c1eca55SDag-Erling Smørgrav.\" documentation and/or other materials provided with the distribution. 185c1eca55SDag-Erling Smørgrav.\" 3. The name of the author may not be used to endorse or promote 195c1eca55SDag-Erling Smørgrav.\" products derived from this software without specific prior written 205c1eca55SDag-Erling Smørgrav.\" permission. 215c1eca55SDag-Erling Smørgrav.\" 225c1eca55SDag-Erling Smørgrav.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 235c1eca55SDag-Erling Smørgrav.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 245c1eca55SDag-Erling Smørgrav.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 255c1eca55SDag-Erling Smørgrav.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 265c1eca55SDag-Erling Smørgrav.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 275c1eca55SDag-Erling Smørgrav.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 285c1eca55SDag-Erling Smørgrav.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 295c1eca55SDag-Erling Smørgrav.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 305c1eca55SDag-Erling Smørgrav.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 315c1eca55SDag-Erling Smørgrav.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 325c1eca55SDag-Erling Smørgrav.\" SUCH DAMAGE. 335c1eca55SDag-Erling Smørgrav.\" 3493889be5SDag-Erling Smørgrav.\" $P4: //depot/projects/openpam/doc/man/pam_authenticate.3#10 $ 355c1eca55SDag-Erling Smørgrav.\" 3693889be5SDag-Erling Smørgrav.Dd April 8, 2002 375c1eca55SDag-Erling Smørgrav.Dt PAM_AUTHENTICATE 3 385c1eca55SDag-Erling Smørgrav.Os 395c1eca55SDag-Erling Smørgrav.Sh NAME 405c1eca55SDag-Erling Smørgrav.Nm pam_authenticate 415c1eca55SDag-Erling Smørgrav.Nd perform authentication within the PAM framework 425c1eca55SDag-Erling Smørgrav.Sh LIBRARY 435c1eca55SDag-Erling Smørgrav.Lb libpam 445c1eca55SDag-Erling Smørgrav.Sh SYNOPSIS 455c1eca55SDag-Erling Smørgrav.In security/pam_appl.h 465c1eca55SDag-Erling Smørgrav.Ft int 475c1eca55SDag-Erling Smørgrav.Fn pam_authenticate "pam_handle_t *pamh" "int flags" 485c1eca55SDag-Erling Smørgrav.Sh DESCRIPTION 4993889be5SDag-Erling SmørgravThe 5093889be5SDag-Erling Smørgrav.Nm 5193889be5SDag-Erling Smørgravfunction attempts to authenticate the user 5293889be5SDag-Erling Smørgravassociated with the pam context specified by the 5393889be5SDag-Erling Smørgrav.Va pamh 5493889be5SDag-Erling Smørgravargument. 5593889be5SDag-Erling Smørgrav.Pp 5693889be5SDag-Erling SmørgravThe application is free to call 5793889be5SDag-Erling Smørgrav.Nm 5893889be5SDag-Erling Smørgravas many times as it 5993889be5SDag-Erling Smørgravwishes, but some modules may maintain an internal retry counter and 6093889be5SDag-Erling Smørgravreturn 6193889be5SDag-Erling Smørgrav.Dv PAM_MAXTRIES 6293889be5SDag-Erling Smørgravwhen it exceeds some preset or hardcoded limit. 6393889be5SDag-Erling Smørgrav.Pp 6493889be5SDag-Erling SmørgravThe 6593889be5SDag-Erling Smørgrav.Va flags 6693889be5SDag-Erling Smørgravargument is the binary or of zero or more of the following 6793889be5SDag-Erling Smørgravvalues: 6893889be5SDag-Erling Smørgrav.Pp 6993889be5SDag-Erling Smørgrav.Bd -literal 7093889be5SDag-Erling Smørgrav =PAM_SILENT 7193889be5SDag-Erling Smørgrav Do not emit any messages. 7293889be5SDag-Erling Smørgrav =PAM_DISALLOW_NULL_AUTHTOK 7393889be5SDag-Erling Smørgrav Fail if the user's authentication token is null. 745c1eca55SDag-Erling Smørgrav.Sh RETURN VALUES 755c1eca55SDag-Erling SmørgravThe 7646acc370SDag-Erling Smørgrav.Nm 775c1eca55SDag-Erling Smørgravfunction returns one of the following values: 7846acc370SDag-Erling Smørgrav.Bl -tag -width 18n 7946acc370SDag-Erling Smørgrav.It Bq Er PAM_ABORT 8046acc370SDag-Erling SmørgravGeneral failure. 8146acc370SDag-Erling Smørgrav.It Bq Er PAM_AUTHINFO_UNAVAIL 8246acc370SDag-Erling SmørgravAuthentication information is unavailable. 8346acc370SDag-Erling Smørgrav.It Bq Er PAM_AUTH_ERR 8446acc370SDag-Erling SmørgravAuthentication error. 8546acc370SDag-Erling Smørgrav.It Bq Er PAM_BUF_ERR 8646acc370SDag-Erling SmørgravMemory buffer error. 8746acc370SDag-Erling Smørgrav.It Bq Er PAM_CONV_ERR 8846acc370SDag-Erling SmørgravConversation failure. 8946acc370SDag-Erling Smørgrav.It Bq Er PAM_CRED_INSUFFICIENT 9046acc370SDag-Erling SmørgravInsufficient credentials. 9146acc370SDag-Erling Smørgrav.It Bq Er PAM_MAXTRIES 9246acc370SDag-Erling SmørgravMaximum number of tries exceeded. 9346acc370SDag-Erling Smørgrav.It Bq Er PAM_PERM_DENIED 9446acc370SDag-Erling SmørgravPermission denied. 9546acc370SDag-Erling Smørgrav.It Bq Er PAM_SERVICE_ERR 9646acc370SDag-Erling SmørgravError in service module. 9746acc370SDag-Erling Smørgrav.It Bq Er PAM_SYSTEM_ERR 9846acc370SDag-Erling SmørgravSystem error. 9946acc370SDag-Erling Smørgrav.It Bq Er PAM_USER_UNKNOWN 10046acc370SDag-Erling SmørgravUnknown user. 1015c1eca55SDag-Erling Smørgrav.El 1025c1eca55SDag-Erling Smørgrav.Sh SEE ALSO 10346acc370SDag-Erling Smørgrav.Xr pam 3 , 10446acc370SDag-Erling Smørgrav.Xr pam_strerror 3 1055c1eca55SDag-Erling Smørgrav.Sh STANDARDS 1065c1eca55SDag-Erling Smørgrav.Rs 1075c1eca55SDag-Erling Smørgrav.%T "X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules" 1085c1eca55SDag-Erling Smørgrav.%D "June 1997" 1095c1eca55SDag-Erling Smørgrav.Re 1105c1eca55SDag-Erling Smørgrav.Sh AUTHORS 1115c1eca55SDag-Erling SmørgravThe 1125c1eca55SDag-Erling Smørgrav.Nm 1135c1eca55SDag-Erling Smørgravfunction and this manual page were developed for the FreeBSD Project 1145c1eca55SDag-Erling Smørgravby ThinkSec AS and NAI Labs, the Security Research Division of Network 1155c1eca55SDag-Erling SmørgravAssociates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 1165c1eca55SDag-Erling Smørgrav.Pq Dq CBOSS , 1175c1eca55SDag-Erling Smørgravas part of the DARPA CHATS research program. 118