]> git.ipfire.org Git - thirdparty/cups.git/log
thirdparty/cups.git
8 months agoUpdate jobs.tmpl pt_BR template 1103/head
bcvieira [Thu, 28 Nov 2024 17:31:48 +0000 (14:31 -0300)] 
Update jobs.tmpl pt_BR template

Corrected from Ã¡ to the correct á pt_BR translation for jobs.tmpl. To verify check printer.tmpl which is right. usuário (user) and páginas (pages).

8 months agoAdd cupsJWTLoadCredentials API.
Michael R Sweet [Mon, 25 Nov 2024 21:19:46 +0000 (16:19 -0500)] 
Add cupsJWTLoadCredentials API.

Update JWT/JWS support code to handle X.509 certificates in addition to the
raw public/private key stuff - needed for some OAuth applications.

8 months agoFix compiler error.
Michael R Sweet [Thu, 21 Nov 2024 19:26:38 +0000 (14:26 -0500)] 
Fix compiler error.

8 months agoAdd macOS-specific compiler options.
Michael R Sweet [Thu, 21 Nov 2024 18:39:26 +0000 (13:39 -0500)] 
Add macOS-specific compiler options.

8 months agoDrop reference to po2strings.
Michael R Sweet [Thu, 21 Nov 2024 18:32:17 +0000 (13:32 -0500)] 
Drop reference to po2strings.

Update localized strings.

8 months agoAdd --bearer-token and --client-name options to ipptool.
Michael R Sweet [Wed, 20 Nov 2024 18:57:49 +0000 (13:57 -0500)] 
Add --bearer-token and --client-name options to ipptool.

8 months agoUpdate default includedir to ${prefix}/include/libcups2
Michael R Sweet [Mon, 18 Nov 2024 16:13:31 +0000 (11:13 -0500)] 
Update default includedir to ${prefix}/include/libcups2

Fix default domain socket on macOS.

8 months agoHarden debug printf PID support (Issue #1066)
Michael R Sweet [Fri, 15 Nov 2024 17:33:34 +0000 (12:33 -0500)] 
Harden debug printf PID support (Issue #1066)

8 months agoFix make-and-model whitespace trimming (Issue #1096)
Michael R Sweet [Fri, 15 Nov 2024 16:54:01 +0000 (11:54 -0500)] 
Fix make-and-model whitespace trimming (Issue #1096)

8 months agoMerge pull request #1094 from yetamrra/staple-bind
zdohnal [Wed, 6 Nov 2024 11:48:24 +0000 (12:48 +0100)] 
Merge pull request #1094 from yetamrra/staple-bind

Support bare staple and bind finishings values

8 months agoFix cupsd.conf man page defaults (Issue #1086)
Michael R Sweet [Tue, 5 Nov 2024 01:17:10 +0000 (20:17 -0500)] 
Fix cupsd.conf man page defaults (Issue #1086)

8 months agoAppend .well-known paths to the oauth URI's resource path.
Michael R Sweet [Mon, 4 Nov 2024 18:15:34 +0000 (13:15 -0500)] 
Append .well-known paths to the oauth URI's resource path.

9 months agoSupport bare staple and bind finishings values 1094/head
Benjamin Gordon [Fri, 1 Nov 2024 19:51:42 +0000 (13:51 -0600)] 
Support bare staple and bind finishings values

In the generated PPD, IPP finishings "bind" is supposed to map to
"StapleLocation: BindAuto".  Similarly, "staple" is supposed to map to
"StapleLocation: SingleAuto".  The code already handles this, except
the lookup is blocked by a check that only accepts "staple-*" and
"bind-*" prefixed versions.  Fix this by adding the bare versions to the
existing checks.

Fixes issue #1073.

9 months agoMore GNU TLS updates.
Michael R Sweet [Wed, 30 Oct 2024 13:50:23 +0000 (09:50 -0400)] 
More GNU TLS updates.

9 months agoGNU TLS updates.
Michael R Sweet [Wed, 30 Oct 2024 13:49:44 +0000 (09:49 -0400)] 
GNU TLS updates.

9 months agoDisable testpage unit test for now until we can figure out why it fails on the CI...
Michael R Sweet [Tue, 22 Oct 2024 23:29:58 +0000 (19:29 -0400)] 
Disable testpage unit test for now until we can figure out why it fails on the CI systems.

9 months agoAdd fcntl.h on Windows.
Michael R Sweet [Tue, 22 Oct 2024 20:30:12 +0000 (16:30 -0400)] 
Add fcntl.h on Windows.

9 months agoAdd cupsGetClock API.
Michael R Sweet [Tue, 22 Oct 2024 20:25:50 +0000 (16:25 -0400)] 
Add cupsGetClock API.

9 months agoAdd cupsGetClock API.
Michael R Sweet [Tue, 22 Oct 2024 20:24:44 +0000 (16:24 -0400)] 
Add cupsGetClock API.

9 months agoFix bug introduced in cupsRasterReadHeader* - was always returning 0.
Michael R Sweet [Mon, 21 Oct 2024 16:35:31 +0000 (12:35 -0400)] 
Fix bug introduced in cupsRasterReadHeader* - was always returning 0.

Add a raster error for I/O errors.

Migrate testraster to the test-internal.h framework.

9 months agoAdd missing OAuth sources to VC project.
Michael R Sweet [Mon, 21 Oct 2024 15:39:04 +0000 (11:39 -0400)] 
Add missing OAuth sources to VC project.

9 months agoMove more of the page header checks to the cups_raster_update function and add error...
Michael R Sweet [Mon, 21 Oct 2024 14:11:07 +0000 (10:11 -0400)] 
Move more of the page header checks to the cups_raster_update function and add error messages for all detected issues.

9 months agotls-gnutls.c: Fix tls_credentials -> credentials
Zdenek Dohnal [Mon, 21 Oct 2024 11:30:15 +0000 (13:30 +0200)] 
tls-gnutls.c: Fix tls_credentials -> credentials

9 months agoUse client credentials, if set.
Michael R Sweet [Sat, 19 Oct 2024 21:05:48 +0000 (17:05 -0400)] 
Use client credentials, if set.

9 months agoFix bug in new cupsParseOptions2 implementation.
Michael R Sweet [Sat, 19 Oct 2024 20:45:53 +0000 (16:45 -0400)] 
Fix bug in new cupsParseOptions2 implementation.

Fix bug in run-stp-tests.sh script.

9 months agoMore libraries needed for static builds
Michael R Sweet [Sat, 19 Oct 2024 19:31:18 +0000 (15:31 -0400)] 
More libraries needed for static builds

9 months agoAdd support for libcups v3 client credentials API.
Michael R Sweet [Sat, 19 Oct 2024 19:26:35 +0000 (15:26 -0400)] 
Add support for libcups v3 client credentials API.

9 months agoconfigure and pkg-config changes:
Michael R Sweet [Sat, 19 Oct 2024 19:09:54 +0000 (15:09 -0400)] 
configure and pkg-config changes:

- Revert default prefix to autoconf default (/usr/local)
- Fix pkg-config libraries when just building static libraries

9 months agoAdd cupsParseOptions2.
Michael R Sweet [Sat, 19 Oct 2024 16:36:42 +0000 (12:36 -0400)] 
Add cupsParseOptions2.

9 months agoDump remainder of old macOS localization support.
Michael R Sweet [Fri, 18 Oct 2024 21:14:22 +0000 (17:14 -0400)] 
Dump remainder of old macOS localization support.

9 months agoUpdate DNS-SD registrations to work over localhost.
Michael R Sweet [Fri, 18 Oct 2024 16:19:28 +0000 (12:19 -0400)] 
Update DNS-SD registrations to work over localhost.

9 months agoFix crash in unit tests.
Michael R Sweet [Fri, 18 Oct 2024 00:52:40 +0000 (20:52 -0400)] 
Fix crash in unit tests.

Fix mapping of HTTP_STATUS_NOT_MODIFIED to IPP_STATUS_OK_EVENTS_COMPLETE.

Only test pinning for self-signed certs.

Fix sanity check for cupsSaveCredentials (copy/paste error)

9 months agoMirror X.509 updates from libcups v3:
Michael R Sweet [Fri, 18 Oct 2024 00:07:18 +0000 (20:07 -0400)] 
Mirror X.509 updates from libcups v3:

- cupsCreateCredentialsRequest now stores the new private key separately
- cupsSaveCredentials now uses the CSR private key when saving just the new
  certificate
- cupsSaveCredentials now does some sanity checks on the input values.
- cupsSaveCredentials now supports credential removal as documented.

9 months agoMirror fixes from libcups:
Michael R Sweet [Tue, 15 Oct 2024 15:27:48 +0000 (11:27 -0400)] 
Mirror fixes from libcups:

- Allow empty resolution values in ipptool files.
- Fix memory leak in httpConnectAgain.
- Remove dead code in ipp_read_io.

9 months agoChangelog.
Michael R Sweet [Sat, 12 Oct 2024 16:08:17 +0000 (12:08 -0400)] 
Changelog.

9 months agoUpdated to re-validate the server's X.509 certificate (Issue #1061)
Michael R Sweet [Sat, 12 Oct 2024 16:08:05 +0000 (12:08 -0400)] 
Updated  to re-validate the server's X.509 certificate (Issue #1061)

9 months agoMake sure we call inflateEnd when there is an error reading or comparing the stream...
Michael R Sweet [Sat, 12 Oct 2024 15:45:13 +0000 (11:45 -0400)] 
Make sure we call inflateEnd when there is an error reading or comparing the stream CRC (Issue #1070)

9 months agoFix type mixup (should be bool)
Michael R Sweet [Wed, 9 Oct 2024 15:18:00 +0000 (11:18 -0400)] 
Fix type mixup (should be bool)

9 months agoMerge pull request #1076 from zdohnal/use-etc-as-root
zdohnal [Wed, 9 Oct 2024 06:24:39 +0000 (08:24 +0200)] 
Merge pull request #1076 from zdohnal/use-etc-as-root

dest.c: Don't look for user config in cupsGetNamedDest as root

9 months agodest.c: Don't look for user config in cupsGetNamedDest as root 1076/head
Zdenek Dohnal [Tue, 8 Oct 2024 10:35:43 +0000 (12:35 +0200)] 
dest.c: Don't look for user config in cupsGetNamedDest as root

We were still looking into ~/.cups/lpoptions as root in the function,
which IMHO is not expected.

9 months agoLimit ippReadIO recursion.
Michael R Sweet [Sun, 6 Oct 2024 02:00:40 +0000 (22:00 -0400)] 
Limit ippReadIO recursion.

10 months agoFix the default User-Agent string sent in requests.
Michael R Sweet [Thu, 3 Oct 2024 21:51:21 +0000 (17:51 -0400)] 
Fix the default User-Agent string sent in requests.

10 months agoEscape localized strings in PPDs.
Michael R Sweet [Mon, 23 Sep 2024 13:17:42 +0000 (09:17 -0400)] 
Escape localized strings in PPDs.

10 months agoMerge pull request #1055 from crrodriguez/patch-1
zdohnal [Mon, 23 Sep 2024 10:48:12 +0000 (12:48 +0200)] 
Merge pull request #1055 from crrodriguez/patch-1

cups.service.in: Order after time-set.target

10 months agoMerge pull request #1056 from RSilicon/Dictionary
Michael R Sweet [Sat, 21 Sep 2024 14:36:45 +0000 (10:36 -0400)] 
Merge pull request #1056 from RSilicon/Dictionary

Use xpc_dictionary_create_empty to create empty dictionaries

10 months agoUse xpc_dictionary_create_empty to create empty dictionaries 1056/head
Rose [Fri, 20 Sep 2024 21:25:37 +0000 (17:25 -0400)] 
Use xpc_dictionary_create_empty to create empty dictionaries

xpc_dictionary_create has Nonnull annotated for some of its parameters. We should just do xpc_dictionary_create_empty to avoid warnings and be safe.

10 months agoAdd a temporary queue before setting the defaults for lpoptions (Issue #833)
Michael R Sweet [Fri, 20 Sep 2024 17:03:52 +0000 (13:03 -0400)] 
Add a temporary queue before setting the defaults for lpoptions (Issue #833)

10 months agoCheck for negative max-fds limit and set to 65535. Fixes a test hang.
Michael R Sweet [Fri, 20 Sep 2024 15:33:48 +0000 (11:33 -0400)] 
Check for negative max-fds limit and set to 65535. Fixes a test hang.

10 months agoAdd ipptool command-line to test report.
Michael R Sweet [Fri, 20 Sep 2024 15:33:38 +0000 (11:33 -0400)] 
Add ipptool command-line to test report.

10 months agoUpdate httpConnectURI to do X.509 pinning, and use it when doing the IPP
Michael R Sweet [Fri, 20 Sep 2024 15:32:56 +0000 (11:32 -0400)] 
Update httpConnectURI to do X.509 pinning, and use it when doing the IPP
Everywhere printer configuration.

10 months agocups.service.in: Order after time-set.target 1055/head
Cristian Rodríguez [Thu, 19 Sep 2024 15:42:10 +0000 (12:42 -0300)] 
cups.service.in: Order after time-set.target

Multiple functions that are called either implicitly or explicitly require a "roughly correct" CLOCK_REALTIME to behave.

10 months agoMerge pull request #1054 from zdohnal/eve-tolerate-missing-media-dat
zdohnal [Thu, 19 Sep 2024 10:35:33 +0000 (12:35 +0200)] 
Merge pull request #1054 from zdohnal/eve-tolerate-missing-media-dat

scheduler: Tolerate devices breaking IPPEVE specs if possible

10 months agoscheduler: Tolerate devices breaking IPPEVE specs if possible 1054/head
Zdenek Dohnal [Wed, 18 Sep 2024 11:24:11 +0000 (13:24 +0200)] 
scheduler: Tolerate devices breaking IPPEVE specs if possible

Related to #1033

PPD generator currently is capable to bypass missing attribute
"media-col-database", if attributes "media-size-supported" or
"media-supported" are present.

Although such devices do not pass any IPP Everywhere or AirPrint
certifications, they exist in the wilderness.

10 months agoFix docker builds/compose (Issue #1021)
Michael R Sweet [Tue, 17 Sep 2024 23:09:44 +0000 (19:09 -0400)] 
Fix docker builds/compose (Issue #1021)

10 months agoSave work.
Michael R Sweet [Tue, 17 Sep 2024 14:26:35 +0000 (10:26 -0400)] 
Save work.

10 months agoRun ldconfig after installing libraries as needed.
Michael R Sweet [Mon, 16 Sep 2024 18:44:27 +0000 (14:44 -0400)] 
Run ldconfig after installing libraries as needed.

10 months agoMerge pull request #1050 from RSilicon/return
zdohnal [Tue, 17 Sep 2024 13:43:54 +0000 (15:43 +0200)] 
Merge pull request #1050 from RSilicon/return

Return early if kvPairs is NULL

10 months agoMerge pull request #1049 from RSilicon/ok
zdohnal [Tue, 17 Sep 2024 13:43:28 +0000 (15:43 +0200)] 
Merge pull request #1049 from RSilicon/ok

Use goto for clearer handling of errors

10 months agoUse cupsConcatString() instead of strlcat()
Zdenek Dohnal [Tue, 17 Sep 2024 08:49:51 +0000 (10:49 +0200)] 
Use cupsConcatString() instead of strlcat()

10 months agoUpdate the cancel man page (Issue #984)
Michael R Sweet [Mon, 16 Sep 2024 16:38:55 +0000 (12:38 -0400)] 
Update the cancel man page (Issue #984)

10 months agoReturn early if kvPairs is NULL 1050/head
Rose [Sat, 14 Sep 2024 19:41:02 +0000 (15:41 -0400)] 
Return early if kvPairs is NULL

10 months agoUse goto for clearer handling of errors 1049/head
Rose [Sat, 14 Sep 2024 18:47:43 +0000 (14:47 -0400)] 
Use goto for clearer handling of errors

Handle memory by jumping to the end where the profile is released

10 months agoMerge pull request #1047 from RSilicon/f
Michael R Sweet [Fri, 13 Sep 2024 01:23:40 +0000 (21:23 -0400)] 
Merge pull request #1047 from RSilicon/f

Avoid second call to ippFindAttribute

10 months agoAvoid second call to ippFindAttribute 1047/head
Rose [Thu, 12 Sep 2024 18:18:03 +0000 (14:18 -0400)] 
Avoid second call to ippFindAttribute

We already have the attr value.

10 months agoMerge ipptool fixes and improvements, update man pages.
Michael R Sweet [Thu, 12 Sep 2024 17:23:50 +0000 (13:23 -0400)] 
Merge ipptool fixes and improvements, update man pages.

10 months agoApply some minor changes suggested by Coverity.
Michael R Sweet [Tue, 10 Sep 2024 15:42:43 +0000 (11:42 -0400)] 
Apply some minor changes suggested by Coverity.

10 months agoFix some clang-detected issues (mostly with debug printfs and missing void
Michael R Sweet [Tue, 10 Sep 2024 00:00:41 +0000 (20:00 -0400)] 
Fix some clang-detected issues (mostly with debug printfs and missing void
casts), and fix the Xcode project file.

10 months agoImport OAuth APIs from libcups v3.
Michael R Sweet [Mon, 9 Sep 2024 21:07:08 +0000 (17:07 -0400)] 
Import OAuth APIs from libcups v3.

Add HTTP Accept header to HTTP API.

Add CUPS OAuth status to IPP API.

10 months agoMerge HTTP and JSON changes from libcups v3, including httpConnectURI API.
Michael R Sweet [Mon, 9 Sep 2024 20:49:18 +0000 (16:49 -0400)] 
Merge HTTP and JSON changes from libcups v3, including httpConnectURI API.

10 months agoMerge JWT fixes from libcups v3.
Michael R Sweet [Mon, 9 Sep 2024 20:36:49 +0000 (16:36 -0400)] 
Merge JWT fixes from libcups v3.

10 months agoFix localization of finishing templates and general presets.
Michael R Sweet [Mon, 9 Sep 2024 20:06:25 +0000 (16:06 -0400)] 
Fix localization of finishing templates and general presets.

10 months agoPPDize preset and template names.
Michael R Sweet [Mon, 9 Sep 2024 19:52:52 +0000 (15:52 -0400)] 
PPDize preset and template names.

10 months agoRefactor make-and-model code.
Michael R Sweet [Mon, 9 Sep 2024 17:59:31 +0000 (13:59 -0400)] 
Refactor make-and-model code.

10 months agoMake sure that temporary/IPP Everywhere queues don't try to work with printers
Michael R Sweet [Mon, 9 Sep 2024 13:59:06 +0000 (09:59 -0400)] 
Make sure that temporary/IPP Everywhere queues don't try to work with printers
that return invalid capabilities.

10 months agoValidate URIs and attribute names before putting them in the generated PPD.
Michael R Sweet [Sat, 7 Sep 2024 23:41:58 +0000 (19:41 -0400)] 
Validate URIs and attribute names before putting them in the generated PPD.

10 months agoAdd crypt32 library on Windows.
Michael R Sweet [Wed, 4 Sep 2024 16:41:43 +0000 (12:41 -0400)] 
Add crypt32 library on Windows.

10 months agoFix Windows directory support.
Michael R Sweet [Wed, 4 Sep 2024 16:17:56 +0000 (12:17 -0400)] 
Fix Windows directory support.

10 months agoDefine mode_t for Windows.
Michael R Sweet [Wed, 4 Sep 2024 16:09:20 +0000 (12:09 -0400)] 
Define mode_t for Windows.

11 months agoMerge pull request #1040 from zdohnal/gnutls-use-correct-pointer
zdohnal [Wed, 4 Sep 2024 07:27:01 +0000 (09:27 +0200)] 
Merge pull request #1040 from zdohnal/gnutls-use-correct-pointer

tls-gnutls.c: Pass gnutls pointer to `gnutls_credentials_set()`

11 months agoAdd support for specifying permissions in cupsFileOpen.
Michael R Sweet [Wed, 4 Sep 2024 01:01:34 +0000 (21:01 -0400)] 
Add support for specifying permissions in cupsFileOpen.

11 months agoMerge pull request #1039 from zdohnal/air-dnssd-txt-fix
zdohnal [Mon, 2 Sep 2024 08:13:21 +0000 (10:13 +0200)] 
Merge pull request #1039 from zdohnal/air-dnssd-txt-fix

Set authentication as required if the value is not "none" (fixes #1037)

11 months agoMerge pull request #1035 from tomodachi94/systemd-slice
zdohnal [Fri, 30 Aug 2024 05:51:44 +0000 (07:51 +0200)] 
Merge pull request #1035 from tomodachi94/systemd-slice

scheduler: add a systemd slice

11 months agotls-gnutls.c: Pass gnutls pointer to `gnutls_credentials_set()` 1040/head
Zdenek Dohnal [Fri, 30 Aug 2024 05:34:04 +0000 (07:34 +0200)] 
tls-gnutls.c: Pass gnutls pointer to `gnutls_credentials_set()`

`credentials` changed type in 2.5, now gnutls pointer, which is needed
for the mentioned function, is a member of new structure which is
`credentials` now, so pass `credential->creds` to the function,
otherwise it crashes.

Found out during running the test suite with gnutls enabled.

11 months agocups/dest.c: Set auth as required if not none 1039/head
Zdenek Dohnal [Fri, 30 Aug 2024 05:24:07 +0000 (07:24 +0200)] 
cups/dest.c: Set auth as required if not none

Fixes #1037

11 months agoscheduler: add a systemd slice 1035/head
Tomodachi94 [Sat, 24 Aug 2024 19:23:51 +0000 (12:23 -0700)] 
scheduler: add a systemd slice

From the systemd documentation[1]:

> A slice unit is a concept for hierarchically managing resources of a group of processes.

Benefits of collecting our two systemd services into a slice include
* ease of configuring resource limits on the entire CUPS system,
* ``systemctl status`` showing the CUPS units in an indented subtree,
  making it more organized,
* and the possibility of viewing all interlaced logs from all of the CUPS
  daemons using ``journalctl -u system-cups.slice``.

[1]:
https://www.freedesktop.org/software/systemd/man/latest/systemd.slice.html
or ``man systemd.slice(5)``

11 months agoFix IPP everywhere printer setup (Issue #1033)
Michael R Sweet [Thu, 15 Aug 2024 01:15:51 +0000 (21:15 -0400)] 
Fix IPP everywhere printer setup (Issue #1033)

11 months agoRegenerate html help pages
Zdenek Dohnal [Wed, 14 Aug 2024 08:25:42 +0000 (10:25 +0200)] 
Regenerate html help pages

11 months agoAdd debug printfs for httpGetHostname.
Michael R Sweet [Wed, 14 Aug 2024 03:22:22 +0000 (23:22 -0400)] 
Add debug printfs for httpGetHostname.

11 months agoFix "all" support for JobPrivateAccess and SubscriptionPrivateAccess (Issue #990)
Michael R Sweet [Wed, 14 Aug 2024 03:21:15 +0000 (23:21 -0400)] 
Fix "all" support for JobPrivateAccess and SubscriptionPrivateAccess (Issue #990)

11 months agoFix cupsGetDestMediaByName and friends (Issue #993)
Michael R Sweet [Wed, 14 Aug 2024 02:39:43 +0000 (22:39 -0400)] 
Fix cupsGetDestMediaByName and friends (Issue #993)

11 months agoMerge pull request #1031 from RSilicon/f
Michael R Sweet [Wed, 14 Aug 2024 00:46:47 +0000 (20:46 -0400)] 
Merge pull request #1031 from RSilicon/f

common_name and credentials are swapped in tls-openssl

11 months agoMake sure we duplicate strings returned by cgiGetTextField, just as we do for cgiGetV...
Michael R Sweet [Wed, 14 Aug 2024 00:31:48 +0000 (20:31 -0400)] 
Make sure we duplicate strings returned by cgiGetTextField, just as we do for cgiGetVariable (Issue #999)

11 months agoFix device URI when adding or modifying a printer (Issue #998)
Michael R Sweet [Wed, 14 Aug 2024 00:26:09 +0000 (20:26 -0400)] 
Fix device URI when adding or modifying a printer (Issue #998)

11 months agoDrop 'device-class' from CUPS-Get-Devices request since it isn't supported (Issue...
Michael R Sweet [Wed, 14 Aug 2024 00:17:40 +0000 (20:17 -0400)] 
Drop 'device-class' from CUPS-Get-Devices request since it isn't supported (Issue #1006)

11 months agoFix printer-state-reasons/message in notifications (Issue #1013)
Michael R Sweet [Wed, 14 Aug 2024 00:11:43 +0000 (20:11 -0400)] 
Fix printer-state-reasons/message in notifications (Issue #1013)

11 months agoImplement cupsLocalizeDestMedia2 (Issue #1025)
Michael R Sweet [Tue, 13 Aug 2024 23:32:27 +0000 (19:32 -0400)] 
Implement cupsLocalizeDestMedia2 (Issue #1025)

11 months agoMerge pull request #1029 from DiPush01/master
Alexander Pevzner [Tue, 13 Aug 2024 11:49:14 +0000 (14:49 +0300)] 
Merge pull request #1029 from DiPush01/master

Fix HTTP PeerCred authentication for domain users (fixes #1001)

11 months agoFix HTTP PeerCred authentication for domain users (fixes #1001) 1029/head
Vladislav Tarakanov [Mon, 12 Aug 2024 22:11:39 +0000 (02:11 +0400)] 
Fix HTTP PeerCred authentication for domain users (fixes #1001)

- Remove domain from user name during local user authentication (e.g., "user@example.com" –> "user"). This practice can be beneficial for maintaining compatibility with older versions of Kerberos. However, enabling this option can have negative consequences. It may result in confusion between domain and local users with identical names, potentially leading to incorrect assignment of user permissions and unintentional permission escalation, thus creating a security risk. Therefore, it is advisable to avoid using this option in most cases.
- Add "StripUserDomain" parameter to cups-files.conf

Co-authored-by: Irgaliev Amin <irgaliev01@mail.ru>
Co-authored-by: Artyom Proskurnyov <temap@mail.ru>
Reviewed-by: Alexander Pevzner <pzz@apevzner.com>
11 months agocommon_name and credentials are swapped in tls-openssl 1031/head
Rose [Mon, 12 Aug 2024 13:22:47 +0000 (09:22 -0400)] 
common_name and credentials are swapped in tls-openssl

11 months agoMerge pull request #1028 from zdohnal/protect-against-possible-NULL
zdohnal [Fri, 9 Aug 2024 05:48:29 +0000 (07:48 +0200)] 
Merge pull request #1028 from zdohnal/protect-against-possible-NULL

Protect against possible NULL (fixes #1026)