mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
home: update log message
The ratelimit hits even when the all previous attempts are successfull.
This commit is contained in:
parent
a9cab9f5cf
commit
367649ee66
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user