]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/openpam/doc/man/pam_start.3
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / openpam / doc / man / pam_start.3
1 .\" Generated from pam_start.c by gendoc.pl
2 .\" $Id: pam_start.c 648 2013-03-05 17:54:27Z des $
3 .Dd September 7, 2013
4 .Dt PAM_START 3
5 .Os
6 .Sh NAME
7 .Nm pam_start
8 .Nd initiate a PAM transaction
9 .Sh LIBRARY
10 .Lb libpam
11 .Sh SYNOPSIS
12 .In sys/types.h
13 .In security/pam_appl.h
14 .Ft "int"
15 .Fn pam_start "const char *service" "const char *user" "const struct pam_conv *pam_conv" "pam_handle_t **pamh"
16 .Sh DESCRIPTION
17 The
18 .Fn pam_start
19 function creates and initializes a PAM context.
20 .Pp
21 The
22 .Fa service
23 argument specifies the name of the policy to apply, and is
24 stored in the
25 .Dv PAM_SERVICE
26 item in the created context.
27 .Pp
28 The
29 .Fa user
30 argument specifies the name of the target user - the user the
31 created context will serve to authenticate.
32 It is stored in the
33 .Dv PAM_USER
34 item in the created context.
35 .Pp
36 The
37 .Fa pam_conv
38 argument points to a
39 .Vt struct pam_conv
40 describing the
41 conversation function to use; see
42 .Fa pam_conv
43 for details.
44 .Pp
45 .Sh RETURN VALUES
46 The
47 .Fn pam_start
48 function returns one of the following values:
49 .Bl -tag -width 18n
50 .It Bq Er PAM_BUF_ERR
51 Memory buffer error.
52 .It Bq Er PAM_SYSTEM_ERR
53 System error.
54 .El
55 .Sh SEE ALSO
56 .Xr pam 3 ,
57 .Xr pam_end 3 ,
58 .Xr pam_get_item 3 ,
59 .Xr pam_set_item 3 ,
60 .Xr pam_strerror 3
61 .Sh STANDARDS
62 .Rs
63 .%T "X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules"
64 .%D "June 1997"
65 .Re
66 .Sh AUTHORS
67 The
68 .Fn pam_start
69 function and this manual page were
70 developed for the
71 .Fx
72 Project by ThinkSec AS and Network Associates Laboratories, the
73 Security Research Division of Network Associates, Inc.\& under
74 DARPA/SPAWAR contract N66001-01-C-8035
75 .Pq Dq CBOSS ,
76 as part of the DARPA CHATS research program.
77 .Pp
78 The OpenPAM library is maintained by
79 .An Dag-Erling Sm\(/orgrav Aq des@des.no .