Compare commits

...

No commits in common. 'c9' and 'i9' have entirely different histories.
c9 ... i9

@ -0,0 +1,29 @@
From 4d2a45eb25136f57686887a0c27209ffed4e5ad4 Mon Sep 17 00:00:00 2001
From: Alexey Berezhok <alexey.berezhok@softline.com>
Date: Wed, 13 Sep 2023 19:14:41 +0300
Subject: [PATCH] Fixed case when no username request on printing
---
scheduler/job.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/scheduler/job.c b/scheduler/job.c
index 0223bee..65d51d6 100644
--- a/scheduler/job.c
+++ b/scheduler/job.c
@@ -3658,6 +3658,12 @@ finalize_job(cupsd_job_t *job, /* I - Job */
ippSetString(job->attrs, &job->reasons, 0,
"cups-held-for-authentication");
}
+ if (job->printer->num_auth_info_required == 1 && !strcmp(job->printer->auth_info_required[0], "none"))
+ {
+ // Default to "username,password" authentication if none is specified...
+ cupsdSetAuthInfoRequired(job->printer, "username,password", NULL);
+ }
+
break;
case CUPS_BACKEND_RETRY :
--
2.39.1

@ -24,7 +24,7 @@ Summary: CUPS printing system
Name: cups
Epoch: 1
Version: 2.3.3%{OP_VER}
Release: 27%{?dist}
Release: 27%{?dist}.inferit
License: ASL 2.0
Url: http://www.cups.org/
# Apple stopped uploading the new versions into github, use OpenPrinting fork
@ -146,6 +146,7 @@ Patch41: cups-socket-remove-on-stop.patch
# https://github.com/OpenPrinting/cups/commit/fb0c914
Patch42: cups-check-for-listeners.patch
Patch101: 0001-Fixed-case-when-no-username-request-on-printing.patch
##### Patches removed because IMHO they aren't no longer needed
##### but still I'll leave them in git in case their removal
@ -425,6 +426,8 @@ to CUPS daemon. This solution will substitute printer drivers and raw queues in
%patch100 -p1 -b .lspp
%endif
%patch101 -p1
# Log to the system journal by default (bug #1078781, bug #1519331).
sed -i -e 's,^ErrorLog .*$,ErrorLog syslog,' conf/cups-files.conf.in
@ -899,6 +902,12 @@ rm -f %{cups_serverbin}/backend/smb
* Thu Mar 23 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.3.3op2-17
- RHEL-317 - upstream test suite fails due uncorrect number of expected warnings
* Thu Mar 16 2023 Alexey Berezhok <alexey.berezhok@msvsphere-os.ru> - 1:2.3.3op2-16.1.inferit.1
- Fixed case when no username request on printing
* Wed Mar 15 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1:2.3.3op2-16
- Rebuilt for MSVSphere 9.1.
* Thu Jun 16 2022 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.3.3op2-16
- CVE-2022-26691 cups: authorization bypass when using "local" authorization

Loading…
Cancel
Save