pam_setcred - modify/delete user credentials for an authentication service
int pam_setcred ( pam_handle_t *pamh, int flags );
pam_setcred()function is used to establish, modify, or delete the credentials of the current user associated with the authentication handle, pamh.
The arguments for
- pamh (in)
The PAM authentication handle, which has been returned from a previous call to
- flags (in)
Flags may be set to one of the following:
To disable messages from the authentication service.
To set user credentials. This is the default value.
To delete user credentials associated with the authentication service.
To reinitialize user credentials.
To extend the lifetime of the user credentials.
The following PAM status codes shall be returned:
The authentication service cannot retrieve the user credentials.
The user credentials have expired.
The user is unknown to the service.
Failure in setting user credentials.
The caller does not possess the required authority.
Failure when dynamically loading a service module.
Symbol not found.
Error in service module.
Memory buffer error.
[??] Some characters or strings that appear in the printed document are not easily representable using HTML.