]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
home: update log message
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 Dec 2021 08:11:31 +0000 (17:11 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 Dec 2021 08:29:30 +0000 (17:29 +0900)
The ratelimit hits even when the all previous attempts are successfull.

src/home/homectl.c
src/home/pam_systemd_home.c

index 6057c04bae82d77f19a1e376c1c38e523416eb89..1e3c96f5addf0f0873e51ac10b2fce527cfc62e6 100644 (file)
@@ -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)) {
 
index 3835efd6089fd0a4b6c32b78768f5339b4cd9f58..35195c2ef0dace106d74b3bed5b413cb5103c36b 100644 (file)
@@ -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;