1*0d9d0fd8Schristos.\" $NetBSD: pam_sm_setcred.3,v 1.9 2023/06/30 21:46:20 christos Exp $ 244269bb5Schristos.\" 38fa0fefeSchristos.\" Generated from pam_sm_setcred.c by gendoc.pl 4*0d9d0fd8Schristos.Dd June 27, 2023 544269bb5Schristos.Dt PAM_SM_SETCRED 3 644269bb5Schristos.Os 744269bb5Schristos.Sh NAME 844269bb5Schristos.Nm pam_sm_setcred 944269bb5Schristos.Nd service module implementation for pam_setcred 1044269bb5Schristos.Sh SYNOPSIS 1144269bb5Schristos.In sys/types.h 1244269bb5Schristos.In security/pam_appl.h 1344269bb5Schristos.In security/pam_modules.h 1444269bb5Schristos.Ft "int" 1544269bb5Schristos.Fn pam_sm_setcred "pam_handle_t *pamh" "int flags" "int argc" "const char **argv" 1644269bb5Schristos.Sh DESCRIPTION 1744269bb5SchristosThe 18e1b25b17Schristos.Fn pam_sm_setcred 1944269bb5Schristosfunction is the service module's implementation of 2044269bb5Schristosthe 2144269bb5Schristos.Xr pam_setcred 3 2244269bb5SchristosAPI function. 2344269bb5Schristos.Sh RETURN VALUES 2444269bb5SchristosThe 25e1b25b17Schristos.Fn pam_sm_setcred 2644269bb5Schristosfunction returns one of the following values: 2744269bb5Schristos.Bl -tag -width 18n 284cb4af11Schristos.It Bq Er PAM_SUCCESS 294cb4af11SchristosSuccess. 3044269bb5Schristos.It Bq Er PAM_ABORT 3144269bb5SchristosGeneral failure. 3244269bb5Schristos.It Bq Er PAM_BUF_ERR 3344269bb5SchristosMemory buffer error. 3444269bb5Schristos.It Bq Er PAM_CONV_ERR 3544269bb5SchristosConversation failure. 3644269bb5Schristos.It Bq Er PAM_CRED_ERR 3744269bb5SchristosFailed to set user credentials. 3844269bb5Schristos.It Bq Er PAM_CRED_EXPIRED 3944269bb5SchristosUser credentials have expired. 4044269bb5Schristos.It Bq Er PAM_CRED_UNAVAIL 4144269bb5SchristosFailed to retrieve user credentials. 4244269bb5Schristos.It Bq Er PAM_IGNORE 4344269bb5SchristosIgnore this module. 4444269bb5Schristos.It Bq Er PAM_PERM_DENIED 4544269bb5SchristosPermission denied. 4644269bb5Schristos.It Bq Er PAM_SERVICE_ERR 4744269bb5SchristosError in service module. 4844269bb5Schristos.It Bq Er PAM_SYSTEM_ERR 4944269bb5SchristosSystem error. 5044269bb5Schristos.It Bq Er PAM_USER_UNKNOWN 5144269bb5SchristosUnknown user. 5244269bb5Schristos.El 5344269bb5Schristos.Sh SEE ALSO 5444269bb5Schristos.Xr pam 3 , 5544269bb5Schristos.Xr pam_setcred 3 , 5644269bb5Schristos.Xr pam_strerror 3 5744269bb5Schristos.Sh STANDARDS 5844269bb5Schristos.Rs 5944269bb5Schristos.%T "X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules" 6044269bb5Schristos.%D "June 1997" 6144269bb5Schristos.Re 6244269bb5Schristos.Sh AUTHORS 6344269bb5SchristosThe 64e1b25b17Schristos.Fn pam_sm_setcred 65e1b25b17Schristosfunction and this manual page were 66e1b25b17Schristosdeveloped for the 6744269bb5Schristos.Fx 68e1b25b17SchristosProject by ThinkSec AS and Network Associates Laboratories, the 6944269bb5SchristosSecurity Research Division of Network Associates, Inc.\& under 7044269bb5SchristosDARPA/SPAWAR contract N66001-01-C-8035 7144269bb5Schristos.Pq Dq CBOSS , 7244269bb5Schristosas part of the DARPA CHATS research program. 738fa0fefeSchristos.Pp 748fa0fefeSchristosThe OpenPAM library is maintained by 754cb4af11Schristos.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no . 76