1 .\" $XConsortium: pam_setcred.3 /main/5 1996/10/29 15:19:22 drk $
4 .\" Copyright (c) 1995, Sun Microsystems, Inc.
5 .\" All Rights Reserved
7 .TH pam_setcred 3 "9 Jan 1996"
9 pam_setcred \- modify\/delete user credentials for
10 an authentication service
14 .RI "[ " "flag" " \|.\|.\|. ] " "file" " \|.\|.\|."
16 .RI "[ " "library" " \|.\|.\|. ]"
20 #include <security/pam_appl.h>
24 .\" .BI "int pam_setcred(pam_handle_t " "*pamh" ,
25 .\" .BI "int " flags");
26 \fBint pam_setcred(pam_handle_t \fI*pamh\fB, int \fIflags\fB);
28 .IX "pam_setcred" "" "\fLpam_setcred\fP \(em request setting credentials"
30 is used to establish, modify, or delete user credentials.
32 is typically called after the user has been authenticated
33 and after a session has been opened (refer to
34 .BR pam_authenticate (3),
35 .BR pam_acct_mgmt (3),
37 .BR pam_open_session (3)).
39 The user is specified by a prior call to
43 and is referenced by the authentication handle,
45 The following flags may be set in the
47 field. Note that the first four flags are mutually exclusive:
49 .IP "PAM_CRED_ESTABLISH" 26
50 Set user credentials for an authentication service
51 .IP "PAM_CRED_DELETE" 26
52 Delete user credentials associated with an authentication service
53 .IP "PAM_CRED_REINITIALIZE" 26
54 Reinitialize user credentials
55 .IP "PAM_CRED_REFRESH" 26
56 Extend lifetime of user credentials
58 Authentication service should not generate any messages
61 If none of the flags are set, PAM_CRED_ESTABLISH
62 is used as the default.
68 In addition to the error return values described in
70 the following values may be returned upon error:
72 .IP PAM_CRED_UNAVAIL 25
73 Underlying authentication service can not retrieve user credentials unavailable
74 .IP PAM_CRED_EXPIRED 25
75 User credentials expired
76 .IP PAM_USER_UNKNOWN 25
77 User unknown to underlying authentication service
79 Failure setting user credentials
84 .BR pam_authenticate (3),
85 .BR pam_acct_mgmt (3),
86 .BR pam_open_session (3)