PAM_CHAUTHTOK(3) | Linux-PAM Manual | PAM_CHAUTHTOK(3) |
pam_chauthtok - updating authentication tokens
#include <security/pam_appl.h>
int pam_chauthtok(pam_handle_t *pamh, int flags);
The pam_chauthtok function is used to change the authentication token for a given user (as indicated by the state associated with the handle pamh).
The pamh argument is an authentication handle obtained by a prior call to pam_start(). The flags argument is the binary or of zero or more of the following values:
PAM_SILENT
PAM_CHANGE_EXPIRED_AUTHTOK
PAM_AUTHTOK_ERR
PAM_AUTHTOK_RECOVERY_ERR
PAM_AUTHTOK_LOCK_BUSY
PAM_AUTHTOK_DISABLE_AGING
PAM_PERM_DENIED
PAM_SUCCESS
PAM_TRY_AGAIN
PAM_USER_UNKNOWN
pam_start(3), pam_authenticate(3), pam_setcred(3), pam_get_item(3), pam_strerror(3), pam(7)
05/18/2017 | Linux-PAM Manual |