~ubuntu-branches/ubuntu/breezy/pam/breezy

« back to all changes in this revision

Viewing changes to Linux-PAM/doc/man/pam_start.3

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2004-06-28 14:28:08 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040628142808-adikk7vtfg3pzcjw
Tags: 0.76-22
* Add uploaders
* Document location of repository
* Fix options containing arguments in pam_unix, Closes: #254904

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\" Hey Emacs! This file is -*- nroff -*- source.
 
2
.\" $Id: pam_start.3,v 1.4 2002/09/21 18:19:20 hartmans Exp $
 
3
.\" Copyright (c) Andrew G. Morgan 1996-7 <morgan@parc.power.net>
 
4
.TH PAM_START 3 "1997 Feb 15" "Linux-PAM 0.56" "Application Programmers' Manual"
 
5
.SH NAME
 
6
pam_start, pam_end \- activating Linux-PAM
 
7
.SH SYNOPSIS
 
8
.B #include <security/pam_appl.h>
 
9
.sp
 
10
.BI "int pam_start(const char " *service ", const char " *user ", const struct pam_conv " *conv ", pam_handle_t " **pamh_p ");"
 
11
.sp
 
12
.BI "int pam_end(pam_handle_t " *pamh ", int " pam_status ");"
 
13
.sp 2
 
14
.SH DESCRIPTION
 
15
.TP
 
16
.B pam_start
 
17
Initialize the
 
18
.I Linux-PAM
 
19
library.  Identifying the application with a particular
 
20
.IR service
 
21
name.  The
 
22
.IR user "name"
 
23
can take the value
 
24
.IR NULL ", "
 
25
if not known at the time the interface is initialized.  The
 
26
conversation structure is passed to the library via the
 
27
.IR conv
 
28
argument.  (For a complete description of this and other structures
 
29
the reader is directed to the more verbose
 
30
.IR Linux-PAM
 
31
application developers' guide).  Upon successful initialization, an
 
32
opaque pointer-handle for future access to the library is returned
 
33
through the contents of the
 
34
.IR pamh_p
 
35
pointer.
 
36
 
 
37
.TP
 
38
.B pam_end
 
39
Terminate the
 
40
.B Linux-PAM
 
41
library.  The service application associated with the
 
42
.IR pamh
 
43
handle, is terminated.  The argument,
 
44
.IR pam_status ", "
 
45
passes the value most recently returned to the application from the
 
46
library; it indicates the manner in which the library should be
 
47
shutdown.  Besides carrying a return value, this argument may be
 
48
logically OR'd with
 
49
.IR PAM_DATA_SILENT
 
50
to indicate that the module should not treat the call too
 
51
seriously. It is generally used to indicate that the current closing
 
52
of the library is in a
 
53
.IR fork "(2)ed"
 
54
process, and that the parent will take care of cleaning up things that
 
55
exist outside of the current process space (files etc.).
 
56
 
 
57
.SH "RETURN VALUE"
 
58
.TP
 
59
.B pam_start
 
60
.TP
 
61
.B pam_end
 
62
On success,
 
63
.BR PAM_SUCCESS
 
64
is returned
 
65
 
 
66
.SH ERRORS
 
67
May be translated to text with
 
68
.BR pam_strerror "(3). "
 
69
 
 
70
.SH "CONFORMING TO"
 
71
DCE-RFC 86.0, October 1995.
 
72
.sp
 
73
Note, the 
 
74
.BR PAM_DATA_SILENT
 
75
flag is pending acceptance with the DCE (as of 1996/12/4).
 
76
 
 
77
.SH BUGS
 
78
.sp 2
 
79
None known.
 
80
 
 
81
.SH "SEE ALSO"
 
82
 
 
83
.BR fork "(2), "
 
84
.BR pam_authenticate "(3), "
 
85
.BR pam_acct_mgmt "(3), "
 
86
.BR pam_open_session "(3), "
 
87
and
 
88
.BR pam_chauthtok "(3)."
 
89
 
 
90
Also, see the three
 
91
.BR Linux-PAM
 
92
Guides, for
 
93
.BR "System administrators" ", "
 
94
.BR "module developers" ", "
 
95
and
 
96
.BR "application developers" ". "