1
.\" Hey Emacs! This file is -*- nroff -*- source.
2
.\" $Id: pam_setcred.3,v 1.4 2002/09/21 18:19:20 hartmans Exp $
3
.\" Copyright (c) Andrew G. Morgan 1996,1997 <morgan@parc.power.net>
4
.TH PAM_SETCRED 3 "1997 July 6" "Linux-PAM 0.58" "App. Programmers' Manual"
6
pam_setcred \- set the credentials for the user
8
.B #include <security/pam_appl.h>
10
.BI "int pam_setcred(pam_handle_t " *pamh ", int " flags ");"
15
This function is used to establish, maintain and delete the
16
credentials of a user. It should be called after a user has been
17
authenticated and before a session is opened for the user (with
18
.BR pam_open_session "(3))."
20
It should be noted that credentials come in many forms. Examples
21
include: group memberships; ticket-files; and Linux-PAM environment
22
variables. For this reason, it is important that the basic identity
23
of the user is established, by the application, prior to a call to
24
this function. For example, the default
26
environment variables should be set and also
28
(or equivalent) should have been performed.
32
.BR PAM_ESTABLISH_CRED
33
initialize the credentials for the user.
37
delete the user's credentials.
40
.BR PAM_REINITIALIZE_CRED
41
delete and then initialize the user's credentials.
45
extend the lifetime of the existing credentials.
51
is returned, all other return values should be treated as errors.
54
May be translated to text with
55
.BR pam_strerror "(3). "
58
DCE-RFC 86.0, October 1995.
66
.BR pam_authenticate "(3), "
67
.BR pam_strerror "(3)"
69
.BR pam_open_session "(3). "
74
.BR "System administrators" ", "
75
.BR "module developers" ", "
77
.BR "application developers" ". "