mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
home: update log message
The ratelimit hits even when the all previous attempts are successfull.
This commit is contained in:
@@ -383,7 +383,7 @@ static int handle_generic_user_record_error(
|
||||
|
||||
else if (sd_bus_error_has_name(error, BUS_ERROR_AUTHENTICATION_LIMIT_HIT))
|
||||
return log_error_errno(SYNTHETIC_ERRNO(ETOOMANYREFS),
|
||||
"Too frequent unsuccessful login attempts for user %s, try again later.", user_name);
|
||||
"Too frequent login attempts for user %s, try again later.", user_name);
|
||||
|
||||
else if (sd_bus_error_has_name(error, BUS_ERROR_BAD_PASSWORD)) {
|
||||
|
||||
|
||||
@@ -293,7 +293,7 @@ static int handle_generic_user_record_error(
|
||||
return PAM_PERM_DENIED;
|
||||
|
||||
} else if (sd_bus_error_has_name(error, BUS_ERROR_AUTHENTICATION_LIMIT_HIT)) {
|
||||
(void) pam_prompt(handle, PAM_ERROR_MSG, NULL, "Too frequent unsuccessful login attempts for user %s, try again later.", user_name);
|
||||
(void) pam_prompt(handle, PAM_ERROR_MSG, NULL, "Too frequent login attempts for user %s, try again later.", user_name);
|
||||
pam_syslog(handle, LOG_ERR, "Failed to acquire home for user %s: %s", user_name, bus_error_message(error, ret));
|
||||
return PAM_MAXTRIES;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user