|
|
HP-UX Reference > Ppam_setcred(3)HP-UX 11i Version 2: December 2007 Update |
|
NAMEpam_setcred() — modify/delete user credentials for an authentication service SYNOPSIScc [ flag ... ] file ... -lpam [ library ... ] #include <security/pam_appl.h> int pam_setcred(pam_handle_t *pamh, int flags); DESCRIPTIONpam_setcred() is used to establish, modify, or delete user credentials. pam_setcred() is typically called after the user has been authenticated and after a session has been opened (refer to pam_authenticate(3), pam_acct_mgmt(3), and pam_open_session(3)). The user is specified by a prior call to pam_start() or pam_set_item(), and is referenced by the authentication handle, pamh. The following flags may be set in the flags field. Note that the first four flags are mutually exclusive:
If none of the flags are set, PAM_ESTABLISH_CRED is used as the default. RETURN VALUEUpon success, pam_setcred() returns PAM_SUCCESS. In addition to the error return values described in pam(3), the following values may be returned upon error:
|
|