Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1346668 - Change symlink for smb backend to /usr/libexec/samba/cups_backend_smb
Summary: Change symlink for smb backend to /usr/libexec/samba/cups_backend_smb
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-15 07:27 UTC by David Woodhouse
Modified: 2016-06-19 07:25 UTC (History)
11 users (show)

Fixed In Version: cups-2.1.4-1.fc24 cups-2.1.3-2.fc23
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-18 18:28:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description David Woodhouse 2016-06-15 07:27:57 UTC
On a relatively clean F23 installation (VM installed in March and then mostly ignored), /usr/lib/cups/backend/smb is a symlink to ../../../bin/smbspool (i.e. /usr/bin/smbspool).

It isn't supposed to be; it's supposed to point to /etc/alternatives/cups_backend_smb.

This means that the samba-krb5-printing package doesn't work.

Comment 1 David Woodhouse 2016-06-15 07:39:14 UTC
Hm, cups still has

%triggerin -- samba-client
ln -sf ../../../bin/smbspool %{cups_serverbin}/backend/smb || :
exit 0

So.... we have /usr/libexec/samba/cups_backend_smb which is pointing to the right place via alternatives. But which isn't used. And the one which *does* get used is still pointing unconditionally to plain smbspool.

Comment 2 Andreas Schneider 2016-06-15 11:41:40 UTC
In order to fix printing with Kerberos tickets using SMB (bug #1273999) I've introduced a new helper binary.

The helper binary is called smb_krb5_wrapper and will make sure we switch to the user who issues the print job to get access to the Kerberos credentials cache.

For this I packaged smb_krb5_wrapper in a new package called samba-krb5-printing.

samba-client still packages smbspool, but it will use update-alternatives to create a symlink:

   /usr/bin/cups_backend_smb

which will point to /usr/bin/smbspool. If the user installs samba-krb5-printing, the updates-alternatives binary will update /usr/bin/cups_backend_smb and point to the wrapper /usr/bin/smb_krb5_wrapper.

This way all the cups package has to do is to create a symlink from /usr/lib/cups/backend/smb and point to /usr/bin/cups_backend_smb.

samba-krb5-printing requires that samba-client is pre-installed. This way the control to /usr/bin/cups_backend_smb is kept on the Samba side and we will not require changes to cups in the future.

Comment 3 Zdenek Dohnal 2016-06-15 12:13:53 UTC
I am currently testing fixed package in RHEL, if it works, I will push it into Fedora rawhide.

Comment 4 Fedora Update System 2016-06-15 14:49:59 UTC
cups-2.1.4-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-385435e4ca

Comment 5 Fedora Update System 2016-06-15 16:55:36 UTC
cups-2.1.4-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-385435e4ca

Comment 6 Fedora Update System 2016-06-16 12:35:57 UTC
cups-2.1.3-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d82d9ef6f9

Comment 7 Fedora Update System 2016-06-17 18:54:48 UTC
cups-2.1.3-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d82d9ef6f9

Comment 8 Fedora Update System 2016-06-18 18:28:45 UTC
cups-2.1.4-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2016-06-19 07:25:43 UTC
cups-2.1.3-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.