-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CUPS can hold for authentication jobs on printers without auth-info-required
attribute
#373
Comments
@EliaGeretto So this sounds like a Samba bug - the backend should be sending the appropriate message to stderr when authentication is needed:
In the meantime you can use the
|
So, just to clarify, you are supposed to be able to add a printer without specifying if it needs authentication and then the backend is responsible to tell CUPS what authentication info is needed? If that is the case, then I should report the bug to samba, indeed. As for the workaround, I edited manually |
I have just tried to execute
The return code is 2, so |
@EliaGeretto Yes, it is a Samba bug. |
I gave another look at the logs and what is shown in the snippet above is indeed the problem. Since no Regarding this issue, I still think it would be nice to check if a backend returning |
I have reported the samba bug. See: https://bugzilla.samba.org/show_bug.cgi?id=15057 |
@EliaGeretto Another option is to force username,password if auth-info-required is none... |
…'t set an authentication method (Issue #373)
If you think this is a sane default, then sure, that definitely works in my setup. I just wonder what could happen if, for example, |
@EliaGeretto In those cases, the fix I made wouldn't be any worse - the default (none) would be replaced by username,password if the backend doesn't set one. But if you need Kerberos (negotiate) you just need to use lpadmin to change the default ( |
Fair, it's true that setting it to |
In my specific instance, this happens when an SMB printer that requires authentication does not have the
auth-info-required
attribute. When trying to print with it, the backend (smbspool
) will exit withCUPS_BACKEND_AUTH_REQUIRED
, leading to the following snippet of code, which holds the job for authentication:cups/scheduler/job.c
Lines 3458 to 3474 in 3a1a81d
Since the printer does not have an
auth-info-required
attribute specified, though, the UIs ingnome-control-center
andsystem-config-printer
(but I suspect other interfaces as well) break, because they cannot provide an authentication prompt given that CUPS replies that no authentication is needed. The job can, at that point, only be cancelled manually despite the "Job held for authentication" message.Given that receiving a
CUPS_BACKEND_AUTH_REQUIRED
exit code from the backend while having noauth-info-required
on the printer is a clear sign of misconfiguration, I suspect that, in this situation, an error should be either printed in the logs or shown to the user. At the moment, no clear indication of a misconfiguration seems to be present.The text was updated successfully, but these errors were encountered: