Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pam_chauthtok(3pam) [sunos man page]

pam_chauthtok(3PAM)					       PAM Library Functions					       pam_chauthtok(3PAM)

NAME
pam_chauthtok - perform password related functions within the PAM framework SYNOPSIS
cc [ flag ... ] file ... -lpam [ library ... ] #include <security/pam_appl.h> int pam_chauthtok(pam_handle_t *pamh, const intflags); DESCRIPTION
The pam_chauthtok() function is called to change the authentication token associated with a particular user referenced by the authentica- tion handle pamh. The following flag may be passed in to pam_chauthtok(): PAM_SILENT The password service should not generate any messages. PAM_CHANGE_EXPIRED_AUTHTOK The password service should only update those passwords that have aged. If this flag is not passed, all password services should update their passwords. Upon successful completion of the call, the authentication token of the user will be changed in accordance with the password service con- figured in the system through pam.conf(4). RETURN VALUES
Upon successful completion, PAM_SUCCESS is returned. In addition to the error return values described in pam(3PAM), the following values may be returned: PAM_PERM_DENIED No permission. PAM_AUTHTOK_ERR Authentication token manipulation error. PAM_AUTHTOK_RECOVERY_ERR Authentication information cannot be recovered. PAM_AUTHTOK_LOCK_BUSY Authentication token lock busy. PAM_AUTHTOK_DISABLE_AGING Authentication token aging disabled. PAM_USER_UNKNOWN User unknown to password service. PAM_TRY_AGAIN Preliminary check by password service failed. ATTRIBUTES
See attributes(5) for description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability | Stable | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe with exceptions | +-----------------------------+-----------------------------+ SEE ALSO
login(1), passwd(1), pam(3PAM), pam_authenticate(3PAM), pam_start(3PAM), attributes NOTES
The flag PAM_CHANGE_EXPIRED_AUTHTOK is typically used by a login application which has determined that the user's password has aged or expired. Before allowing the user to login, the login application may invoke pam_chauthtok() with this flag to allow the user to update the password. Typically, applications such as passwd(1) should not use this flag. The pam_chauthtok() functions performs a preliminary check before attempting to update passwords. This check is performed for each password module in the stack as listed in pam.conf(4). The check may include pinging remote name services to determine if they are available. If pam_chauthtok() returns PAM_TRY_AGAIN, then the check has failed, and passwords are not updated. The interfaces in libpam are MT-Safe only if each thread within the multithreaded application uses its own PAM handle. SunOS 5.10 13 Oct 1998 pam_chauthtok(3PAM)

Check Out this Related Man Page

pam_acct_mgmt(3PAM)					       PAM Library Functions					       pam_acct_mgmt(3PAM)

NAME
pam_acct_mgmt - perform PAM account validation procedures SYNOPSIS
cc [ flag ... ] file ... -lpam [ library ... ] #include <security/pam_appl.h> int pam_acct_mgmt(pam_handle_t *pamh, int flags); DESCRIPTION
The pam_acct_mgmt() function is called to determine if the current user's account is valid. It checks for password and account expiration, and verifies access hour restrictions. This function is typically called after the user has been authenticated with pam_authenticate(3PAM). The pamh argument is an authentication handle obtained by a prior call to pam_start(). The following flags may be set in the flags field: PAM_SILENT The account management service should not generate any messages. PAM_DISALLOW_NULL_AUTHTOK The account management service should return PAM_NEW_AUTHTOK_REQD if the user has a null authentication token. RETURN VALUES
Upon successful completion, PAM_SUCCESS is returned. In addition to the error return values described in pam(3PAM), the following values may be returned: PAM_USER_UNKNOWN User not known to underlying account management module. PAM_AUTH_ERR Authentication failure. PAM_NEW_AUTHTOK_REQD New authentication token required. This is normally returned if the machine security policies require that the password should be changed because the password is NULL or has aged. PAM_ACCT_EXPIRED User account has expired. ATTRIBUTES
See attributes(5) for description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability | Stable | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe with exceptions | +-----------------------------+-----------------------------+ SEE ALSO
pam(3PAM), pam_authenticate(3PAM), pam_start(3PAM), libpam(3LIB), attributes(5) NOTES
The interfaces in libpam are MT-Safe only if each thread within the multithreaded application uses its own PAM handle. SunOS 5.10 13 Oct 1998 pam_acct_mgmt(3PAM)
Man Page