xref: /freebsd/contrib/openpam/doc/man/pam_open_session.3 (revision 2f3ed61901142025bf8b99c3bda7b38dd74b09a8)
15c1eca55SDag-Erling Smørgrav.\"-
231c521e9SDag-Erling Smørgrav.\" Copyright (c) 2001-2003 Networks Associates Technology, Inc.
37f106882SDag-Erling Smørgrav.\" Copyright (c) 2004-2011 Dag-Erling Smørgrav
45c1eca55SDag-Erling Smørgrav.\" All rights reserved.
55c1eca55SDag-Erling Smørgrav.\"
65c1eca55SDag-Erling Smørgrav.\" This software was developed for the FreeBSD Project by ThinkSec AS and
7ee02aaa9SDag-Erling Smørgrav.\" Network Associates Laboratories, the Security Research Division of
8ee02aaa9SDag-Erling Smørgrav.\" Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
9ee02aaa9SDag-Erling Smørgrav.\" ("CBOSS"), as part of the DARPA CHATS research program.
105c1eca55SDag-Erling Smørgrav.\"
115c1eca55SDag-Erling Smørgrav.\" Redistribution and use in source and binary forms, with or without
125c1eca55SDag-Erling Smørgrav.\" modification, are permitted provided that the following conditions
135c1eca55SDag-Erling Smørgrav.\" are met:
145c1eca55SDag-Erling Smørgrav.\" 1. Redistributions of source code must retain the above copyright
155c1eca55SDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer.
165c1eca55SDag-Erling Smørgrav.\" 2. Redistributions in binary form must reproduce the above copyright
175c1eca55SDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer in the
185c1eca55SDag-Erling Smørgrav.\"    documentation and/or other materials provided with the distribution.
195c1eca55SDag-Erling Smørgrav.\" 3. The name of the author may not be used to endorse or promote
205c1eca55SDag-Erling Smørgrav.\"    products derived from this software without specific prior written
215c1eca55SDag-Erling Smørgrav.\"    permission.
225c1eca55SDag-Erling Smørgrav.\"
235c1eca55SDag-Erling Smørgrav.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
245c1eca55SDag-Erling Smørgrav.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
255c1eca55SDag-Erling Smørgrav.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
265c1eca55SDag-Erling Smørgrav.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
275c1eca55SDag-Erling Smørgrav.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
285c1eca55SDag-Erling Smørgrav.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
295c1eca55SDag-Erling Smørgrav.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
305c1eca55SDag-Erling Smørgrav.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
315c1eca55SDag-Erling Smørgrav.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
325c1eca55SDag-Erling Smørgrav.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
335c1eca55SDag-Erling Smørgrav.\" SUCH DAMAGE.
345c1eca55SDag-Erling Smørgrav.\"
357f106882SDag-Erling Smørgrav.\" $Id$
365c1eca55SDag-Erling Smørgrav.\"
37*2f3ed619SDag-Erling Smørgrav.Dd May 26, 2012
385c1eca55SDag-Erling Smørgrav.Dt PAM_OPEN_SESSION 3
395c1eca55SDag-Erling Smørgrav.Os
405c1eca55SDag-Erling Smørgrav.Sh NAME
415c1eca55SDag-Erling Smørgrav.Nm pam_open_session
425c1eca55SDag-Erling Smørgrav.Nd open a user session
435c1eca55SDag-Erling Smørgrav.Sh LIBRARY
445c1eca55SDag-Erling Smørgrav.Lb libpam
455c1eca55SDag-Erling Smørgrav.Sh SYNOPSIS
46644f2b7cSDag-Erling Smørgrav.In sys/types.h
475c1eca55SDag-Erling Smørgrav.In security/pam_appl.h
48ca236e63SDag-Erling Smørgrav.Ft "int"
495c1eca55SDag-Erling Smørgrav.Fn pam_open_session "pam_handle_t *pamh" "int flags"
505c1eca55SDag-Erling Smørgrav.Sh DESCRIPTION
51183bda37SDag-Erling SmørgravThe
52*2f3ed619SDag-Erling Smørgrav.Fn pam_open_session
53183bda37SDag-Erling Smørgravsets up a user session for a previously
54b33ab329SDag-Erling Smørgravauthenticated user.
55b33ab329SDag-Erling SmørgravThe session should later be torn down by a call to
56183bda37SDag-Erling Smørgrav.Xr pam_close_session 3 .
57183bda37SDag-Erling Smørgrav.Pp
58183bda37SDag-Erling SmørgravThe
59b33ab329SDag-Erling Smørgrav.Fa flags
60183bda37SDag-Erling Smørgravargument is the binary or of zero or more of the following
61183bda37SDag-Erling Smørgravvalues:
62183bda37SDag-Erling Smørgrav.Bl -tag -width 18n
63183bda37SDag-Erling Smørgrav.It Dv PAM_SILENT
64183bda37SDag-Erling SmørgravDo not emit any messages.
65183bda37SDag-Erling Smørgrav.El
66ee02aaa9SDag-Erling Smørgrav.Pp
67183bda37SDag-Erling SmørgravIf any other bits are set,
68*2f3ed619SDag-Erling Smørgrav.Fn pam_open_session
69183bda37SDag-Erling Smørgravwill return
70183bda37SDag-Erling Smørgrav.Dv PAM_SYMBOL_ERR .
715c1eca55SDag-Erling Smørgrav.Sh RETURN VALUES
725c1eca55SDag-Erling SmørgravThe
73*2f3ed619SDag-Erling Smørgrav.Fn pam_open_session
745c1eca55SDag-Erling Smørgravfunction returns one of the following values:
7546acc370SDag-Erling Smørgrav.Bl -tag -width 18n
7646acc370SDag-Erling Smørgrav.It Bq Er PAM_ABORT
7746acc370SDag-Erling SmørgravGeneral failure.
7846acc370SDag-Erling Smørgrav.It Bq Er PAM_BUF_ERR
7946acc370SDag-Erling SmørgravMemory buffer error.
8046acc370SDag-Erling Smørgrav.It Bq Er PAM_CONV_ERR
8146acc370SDag-Erling SmørgravConversation failure.
8246acc370SDag-Erling Smørgrav.It Bq Er PAM_PERM_DENIED
8346acc370SDag-Erling SmørgravPermission denied.
8446acc370SDag-Erling Smørgrav.It Bq Er PAM_SERVICE_ERR
8546acc370SDag-Erling SmørgravError in service module.
8646acc370SDag-Erling Smørgrav.It Bq Er PAM_SESSION_ERR
8746acc370SDag-Erling SmørgravSession failure.
88183bda37SDag-Erling Smørgrav.It Bq Er PAM_SYMBOL_ERR
89183bda37SDag-Erling SmørgravInvalid symbol.
9046acc370SDag-Erling Smørgrav.It Bq Er PAM_SYSTEM_ERR
9146acc370SDag-Erling SmørgravSystem error.
925c1eca55SDag-Erling Smørgrav.El
935c1eca55SDag-Erling Smørgrav.Sh SEE ALSO
9446acc370SDag-Erling Smørgrav.Xr pam 3 ,
95183bda37SDag-Erling Smørgrav.Xr pam_close_session 3 ,
9646acc370SDag-Erling Smørgrav.Xr pam_strerror 3
975c1eca55SDag-Erling Smørgrav.Sh STANDARDS
985c1eca55SDag-Erling Smørgrav.Rs
995c1eca55SDag-Erling Smørgrav.%T "X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules"
1005c1eca55SDag-Erling Smørgrav.%D "June 1997"
1015c1eca55SDag-Erling Smørgrav.Re
1025c1eca55SDag-Erling Smørgrav.Sh AUTHORS
1035c1eca55SDag-Erling SmørgravThe
104*2f3ed619SDag-Erling Smørgrav.Fn pam_open_session
105*2f3ed619SDag-Erling Smørgravfunction and this manual page were
106*2f3ed619SDag-Erling Smørgravdeveloped for the
107ca236e63SDag-Erling Smørgrav.Fx
108*2f3ed619SDag-Erling SmørgravProject by ThinkSec AS and Network Associates Laboratories, the
1099bc006deSDag-Erling SmørgravSecurity Research Division of Network Associates, Inc.\& under
110ca236e63SDag-Erling SmørgravDARPA/SPAWAR contract N66001-01-C-8035
1115c1eca55SDag-Erling Smørgrav.Pq Dq CBOSS ,
1125c1eca55SDag-Erling Smørgravas part of the DARPA CHATS research program.
113