1 .\" Generated from pam_setcred.c by gendoc.pl
2 .\" $OpenPAM: pam_setcred.c 938 2017-04-30 21:34:42Z des $
8 .Nd modify / delete user credentials for an authentication service
11 .In security/pam_appl.h
13 .Fn pam_setcred "pam_handle_t *pamh" "int flags"
17 function manages the application's credentials.
21 argument is the binary or of zero or more of the following
25 Do not emit any messages.
26 .It Dv PAM_ESTABLISH_CRED
27 Establish the credentials of the target user.
28 .It Dv PAM_DELETE_CRED
29 Revoke all established credentials.
30 .It Dv PAM_REINITIALIZE_CRED
31 Fully reinitialise credentials.
32 .It Dv PAM_REFRESH_CRED
36 The latter four are mutually exclusive.
38 If any other bits are set,
41 .Dv PAM_BAD_CONSTANT .
45 function returns one of the following values:
51 .It Bq Er PAM_BAD_CONSTANT
55 .It Bq Er PAM_CONV_ERR
57 .It Bq Er PAM_CRED_ERR
58 Failed to set user credentials.
59 .It Bq Er PAM_CRED_EXPIRED
60 User credentials have expired.
61 .It Bq Er PAM_CRED_UNAVAIL
62 Failed to retrieve user credentials.
63 .It Bq Er PAM_PERM_DENIED
65 .It Bq Er PAM_SERVICE_ERR
66 Error in service module.
67 .It Bq Er PAM_SYSTEM_ERR
69 .It Bq Er PAM_USER_UNKNOWN
77 .%T "X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules"
83 function and this manual page were
86 Project by ThinkSec AS and Network Associates Laboratories, the
87 Security Research Division of Network Associates, Inc.\& under
88 DARPA/SPAWAR contract N66001-01-C-8035
90 as part of the DARPA CHATS research program.
92 The OpenPAM library is maintained by
93 .An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .