* The username to check. *
* @param string $password* The user-supplied password to check. *
* @param string $error* Output parameter to put any error messages in. *
* @param bool $check_account_management* Call pam_acct_mgmt() to check account expiration and access. (Requires root access!) *
* @param string $service_name* PAM service name to use. (Defaults to "php") *
* @return bool Returns a bool when complete. If false, $error contains any error messages generated. */ #[Pure] function pam_auth(string $username, string $password, string $error, bool $check_account_management = true, string $service_name = 'php') {} /** * Change a password for a PAM unix account. * * @param string $username* The username to check. *
* @param string $old_password* The current password for the account. *
* @param string $new_password* The new password for the account. *
* @param string $error* Output parameter to put any error messages in. *
* @param string $service_name* PAM service name to use. (Defaults to "php") *
* @return bool Returns a bool when complete. If false, $error contains any error messages generated. */ #[Pure] function pam_chpass(string $username, string $old_password, string $new_password, string $error, string $service_name = 'php') {}