From de1dfc4685b9159e21e207e12c1f68d10a017efd Mon Sep 17 00:00:00 2001 From: abubakar sabir Date: Tue, 28 Apr 2026 08:28:37 +0500 Subject: [PATCH] Update authentication log messages for consistency and fix argument mismatch --- scheduler/auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scheduler/auth.c b/scheduler/auth.c index d48a149d88..2153f59167 100644 --- a/scheduler/auth.c +++ b/scheduler/auth.c @@ -686,7 +686,7 @@ cupsdAuthorize(cupsd_client_t *con) /* I - Client connection */ pamerr = pam_authenticate(pamh, PAM_SILENT); if (pamerr != PAM_SUCCESS) { - cupsdLogClient(con, CUPSD_LOG_ERROR, "Authentication failed for user \"%s\" (%s)", username, con->http->hostname, pam_strerror(pamh, pamerr)); + cupsdLogClient(con, CUPSD_LOG_ERROR, "Authentication failed for user \"%s\" from %s (%s)", username, con->http->hostname, pam_strerror(pamh, pamerr)); pam_end(pamh, 0); return; } @@ -2081,7 +2081,7 @@ cupsdIsAuthorized(cupsd_client_t *con, /* I - Connection */ * The user isn't part of the specified users or groups, so deny access... */ - cupsdLogMessage(CUPSD_LOG_ERROR, "Authentication failed for user \"%s\" from %s (User not in group(s)).", con->username, con->http->hostname); + cupsdLogMessage(CUPSD_LOG_WARN, "Authentication failed for user \"%s\" from %s (User not in group(s)).", con->username, con->http->hostname); return (con->username[0] ? HTTP_STATUS_FORBIDDEN : HTTP_STATUS_UNAUTHORIZED); } -- 2.47.3