Bug 1715900 - Authentication dialog for samba printer provides no input fields
Summary: Authentication dialog for samba printer provides no input fields
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: samba
Version: 30
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Guenther Deschner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-31 14:56 UTC by Jan Škrle
Modified: 2020-02-17 14:40 UTC (History)
20 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
bcotton: fedora_prioritized_bug+


Attachments (Terms of Use)

Description Jan Škrle 2019-05-31 14:56:18 UTC
Description of problem:
Authentication dialog in print job list for network printer has no inputs whatsoever

Version-Release number of selected component (if applicable):
gnome-shell-3.32.2-1.fc30.x86_64
gnome-settings-daemon-3.32.0-1.fc30.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Set up a network printer via SMB in CUPS, e.g. something like smb://printserver/queue which requires authentication
2. Try to print a document
3. The job is held for authentication. Upon opening authentication pop-up dialog in print job list it shows empty without any input fields.

Actual results:
The printout is held for authentication.

Expected results:
A popup asking for Windows username and password should be shown and the printout should be sent to the printer by using these authentication information.

Additional info:
If I change `AuthInfoRequired negotiate` => `AuthInfoRequired username,password` in `/etc/cups/printers.conf`, I am able to authenticate next print job correctly, but after that cups changes the settings back and problem repeats.

Even if dialog works correctly, it seems silly to be forced authenticate every print job. There should be an option to save credentials. I also tried to fill credentials into DeviceURI (e.g. `smb://domain\username:password@printserver/queue`), did not work any better.

My /etc/cups/printers.conf is as follows:
# Printer configuration file for CUPS v2.2.11
# Written by cupsd on 2019-05-31 16:18
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<DefaultPrinter Seznam>
UUID urn:uuid:6513514c-33f4-322c-7a11-ac1e21beb198
AuthInfoRequired negotiate
Info Seznam
MakeModel KONICA MINOLTA C360SeriesPS(P)
DeviceURI smb://tisk/Konica
State Idle
StateTime 1559312295
ConfigTime 1553173465
Type 8401100
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</DefaultPrinter>

Comment 1 Marek Kašík 2019-06-10 15:07:16 UTC
This is an issue in samba package. It returns the "negotiate" in AuthInfoRequired. The version of samba in Fedora 29 worked so I tried to find the commit which caused this.
It is a set of related commits:

https://git.samba.org/?p=samba.git;a=commit;h=fad5e4eaeb9202c1b63c42ea09254c17c473e33a
https://git.samba.org/?p=samba.git;a=commit;h=43160184d254a57f87bb2adeba47f48d8539533a
https://git.samba.org/?p=samba.git;a=commit;h=5274b09fbaa5e45cc58f3301818d4e9f6a402845
https://git.samba.org/?p=samba.git;a=commit;h=129ae27946318a075e99c9e6d1bacf8963f72282
https://git.samba.org/?p=samba.git;a=commit;h=69d7a496d3bf52eaa10e81132bb61430863fdd8a

If I revert them in Fedora 30 then the dialog shows the fields.
I made a scratch build of samba with the commits reverted here: https://koji.fedoraproject.org/koji/taskinfo?taskID=35458274

I'm reassigning this to samba.

Comment 2 Dr Anirban Mitra 2020-01-31 16:15:43 UTC
I can not upgrade to Fedora 31 due to this bug as even upgrading samba in F29 I am unable to print through my windows computer due to this bug. 
Is it expected to be solved in Fedora 33?


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