Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pam_setcred(3) [mojave man page]

PAM_SETCRED(3)						   BSD Library Functions Manual 					    PAM_SETCRED(3)

NAME
pam_setcred -- modify / delete user credentials for an authentication service LIBRARY
Pluggable Authentication Module Library (libpam, -lpam) SYNOPSIS
#include <sys/types.h> #include <security/pam_appl.h> int pam_setcred(pam_handle_t *pamh, int flags); DESCRIPTION
The pam_setcred function manages the application's credentials. The flags argument is the binary or of zero or more of the following values: PAM_SILENT Do not emit any messages. PAM_ESTABLISH_CRED Establish the credentials of the target user. PAM_DELETE_CRED Revoke all established credentials. PAM_REINITIALIZE_CRED Fully reinitialise credentials. PAM_REFRESH_CRED Refresh credentials. The latter four are mutually exclusive. If any other bits are set, pam_setcred will return PAM_SYMBOL_ERR. RETURN VALUES
The pam_setcred function returns one of the following values: [PAM_ABORT] General failure. [PAM_BUF_ERR] Memory buffer error. [PAM_CONV_ERR] Conversation failure. [PAM_CRED_ERR] Failed to set user credentials. [PAM_CRED_EXPIRED] User credentials have expired. [PAM_CRED_UNAVAIL] Failed to retrieve user credentials. [PAM_PERM_DENIED] Permission denied. [PAM_SERVICE_ERR] Error in service module. [PAM_SYMBOL_ERR] Invalid symbol. [PAM_SYSTEM_ERR] System error. [PAM_USER_UNKNOWN] Unknown user. SEE ALSO
pam(3), pam_strerror(3) STANDARDS
X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules, June 1997. AUTHORS
The pam_setcred function and this manual page were developed for the FreeBSD Project by ThinkSec AS and Network Associates Laboratories, the Security Research Division of Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (``CBOSS''), as part of the DARPA CHATS research program. BSD
December 21, 2007 BSD

Check Out this Related Man Page

PAM_SM_SETCRED(3)					   BSD Library Functions Manual 					 PAM_SM_SETCRED(3)

NAME
pam_sm_setcred -- service module implementation for pam_setcred LIBRARY
Pluggable Authentication Module Library (libpam, -lpam) SYNOPSIS
#include <sys/types.h> #include <security/pam_appl.h> #include <security/pam_modules.h> int pam_sm_setcred(pam_handle_t *pamh, int flags, int argc, const char **argv); DESCRIPTION
The pam_sm_setcred function is the service module's implementation of the pam_setcred(3) API function. RETURN VALUES
The pam_sm_setcred function returns one of the following values: [PAM_ABORT] General failure. [PAM_BUF_ERR] Memory buffer error. [PAM_CONV_ERR] Conversation failure. [PAM_CRED_ERR] Failed to set user credentials. [PAM_CRED_EXPIRED] User credentials have expired. [PAM_CRED_UNAVAIL] Failed to retrieve user credentials. [PAM_IGNORE] Ignore this module. [PAM_PERM_DENIED] Permission denied. [PAM_SERVICE_ERR] Error in service module. [PAM_SYSTEM_ERR] System error. [PAM_USER_UNKNOWN] Unknown user. SEE ALSO
pam(3), pam_setcred(3), pam_strerror(3) STANDARDS
X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules, June 1997. AUTHORS
The pam_sm_setcred function and this manual page were developed for the FreeBSD Project by ThinkSec AS and Network Associates Laboratories, the Security Research Division of Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (``CBOSS''), as part of the DARPA CHATS research program. BSD
December 21, 2007 BSD
Man Page

5 More Discussions You Might Find Interesting

1. Solaris

x86 - cant access server as root

Hi does anyone got idea on this x4600 machine error? WARNING: rpcmod:svc_default_stksize is set more than once in /etc/system. "set r pcmod:svc_default_stksize = 0x6000" applied as the current setting. SunOS Release 5.10 Version Generic_125101-02 64-bit Copyright 1983-2006 Sun Microsystems,... (14 Replies)
Discussion started by: incredible
14 Replies

2. Solaris

PAM settings.

Hi Experts, Appended is the pam.conf file in my Sol 5.10 client which uses AD for authentication(Followed scott Lowe's blog on AD-Solaris integration): bash-3.00# cat /etc/pam.conf ##ident "@(#)pam.conf 1.31 07/12/07 SMI" # Copyright 2007 Sun Microsystems, Inc. All rights reserved.... (9 Replies)
Discussion started by: Hari_Ganesh
9 Replies

3. Solaris

Help with Solaris 10 and ldapclient authentication

Hello everyone! Currently, i have a RHEL6 server, with openLDAP server running. Most of our servers run on Rhel platform, but some of them run in Solaris 10, and I need to make them authenticate with ldap too. As the ldap server is running without encryption, the command I used for initialize... (13 Replies)
Discussion started by: Lilbighorn
13 Replies

4. Proxy Server

Configure native ldap client on Solaris 10

Hi guys. First, sorry for my english, I´m tried to write the best form but sure I´m not do it. I´m tried to configure the native ldap client on Solaris 10 but yet dosen't work. May be the problem is in the pam.conf or something like that. This is the line I was applied to configure the... (7 Replies)
Discussion started by: sultano
7 Replies

5. Solaris

Solaris10 and Windows2000 authentication.

Only for testing/learning I have setup a windows 2000 server with active directory I connect to it a Solaris 10 machine "client". I want Solaris10 take users from AD I have follow this guide.. a)Setup active directory environment+services for UNIX OK b)I have created two users,one for... (2 Replies)
Discussion started by: Linusolaradm1
2 Replies