[Upstream] Unable to print to password protected (cups) printer

Bug #943881 reported by Jean-Louis Dupond
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
LibreOffice
Fix Released
High
libreoffice (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Hi!

I'm on Precise using LibreOffice 3.5.0.

Situation:
Windows 7 PC with a printer shared on it (Password protected).
Ubuntu Precise system that uses this printer in cups, and set to 'ask password when needed'.

Now I can print perfectly from gedit for example. After sending the print job, I get a popup to enter the login & pass for the printer.
But with LibreOffice it never asks the credentials, so the printing fails (ACCESS DENIED in cups).

Think this should be fixed asap :) Cause not being able to print in an Office application ... :)
---
ApportVersion: 1.93-0ubuntu2
Architecture: amd64
DistroRelease: Ubuntu 12.04
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110705.1)
Package: libreoffice-core 1:3.5.0-1ubuntu4
PackageArchitecture: amd64
ProcEnviron:
 LANGUAGE=nl:en_AU:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=nl_BE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 3.2.0-17.27-generic 3.2.6
Tags: precise
Uname: Linux 3.2.0-17-generic x86_64
UpgradeStatus: Upgraded to precise on 2012-02-19 (11 days ago)
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare
---
ApportVersion: 1.93-0ubuntu2
Architecture: amd64
DistroRelease: Ubuntu 12.04
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110705.1)
Package: libreoffice-writer 1:3.5.0-1ubuntu4
PackageArchitecture: amd64
ProcEnviron:
 LANGUAGE=nl:en_AU:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=nl_BE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 3.2.0-17.27-generic 3.2.6
Tags: precise
Uname: Linux 3.2.0-17-generic x86_64
UpgradeStatus: Upgraded to precise on 2012-02-19 (11 days ago)
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare

Revision history for this message
penalvch (penalvch) wrote :

Jean-Louis Dupond, thank you for taking the time to report this and helping to make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal:
apport-collect 943881
When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in libreoffice (Ubuntu):
status: New → Incomplete
Revision history for this message
Jean-Louis Dupond (dupondje) wrote : Dependencies.txt

apport information

tags: added: apport-collected precise
description: updated
description: updated
Revision history for this message
Jean-Louis Dupond (dupondje) wrote :

apport information

Changed in libreoffice (Ubuntu):
status: Incomplete → New
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote : Re: Unable to print to password protected (cups) printer

possibly related: bug 911235

Revision history for this message
In , Support-1 (support-1) wrote :

There is no authentication function when printing using CUPS on the network (such as localhost: 631) while in OOo (version 1.2) is a pop-up window requesting user name and password.

Revision history for this message
In , Support-1 (support-1) wrote :

There is no authentication function when printing using CUPS on the network (such as localhost: 631) while in OOo (version 1.2) is a pop-up window requesting user name and password.

Revision history for this message
In , Martin Pitt (pitti) wrote :

cups usually does not require authentication when talking to a local printer, it uses the socket cookie. This is not related to ConsoleKit at all; if cups is misbehaving, please report a bug against cups.

Thanks,

Martin

Revision history for this message
In , Martin Pitt (pitti) wrote :

cups usually does not require authentication when talking to a local printer, it uses the socket cookie. This is not related to ConsoleKit at all; if cups is misbehaving, please report a bug against cups.

Thanks,

Martin

Revision history for this message
In , Support-1 (support-1) wrote :

Excuse me but the LibreOffice has this error nevertheless.
When both the network printer and CUPS configured and worked on other computer and if somebody wish print some documents from any applications authentication is needed. Before printing applications should open the necessary window so that users have possibility to enter one's name and password. OpenOffice knew to make it. Unfortunately, we guess this source code was erased from LibreOffice when this project was forked from OepOffice.org.

Revision history for this message
In , Support-1 (support-1) wrote :

Excuse me but the LibreOffice has this error nevertheless.
When both the network printer and CUPS configured and worked on other computer and if somebody wish print some documents from any applications authentication is needed. Before printing applications should open the necessary window so that users have possibility to enter one's name and password. OpenOffice knew to make it. Unfortunately, we guess this source code was erased from LibreOffice when this project was forked from OepOffice.org.

Changed in libreoffice (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libreoffice (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Thijs Kinkhorst (kink) wrote :

I'm unsure if this report was filed against the right component, feel free to reassign. The issue is real, though.

The problem arises when printing to a network printer, e.g. over IPP, that requires a username/password combination. We have such printers in our enterprise environment. They are configured in my local CUPS printers.conf with the "AuthInfoRequired username,password" option.

This works fine with Gnome programs and Firefox, but LibreOffice doesn't request any credentials from the user and printing fails.

Revision history for this message
In , Thijs Kinkhorst (kink) wrote :

I'm unsure if this report was filed against the right component, feel free to reassign. The issue is real, though.

The problem arises when printing to a network printer, e.g. over IPP, that requires a username/password combination. We have such printers in our enterprise environment. They are configured in my local CUPS printers.conf with the "AuthInfoRequired username,password" option.

This works fine with Gnome programs and Firefox, but LibreOffice doesn't request any credentials from the user and printing fails.

Revision history for this message
Thijs Kinkhorst (kink) wrote :

I can confirm the issue: when configuring a printer in cups with the "AuthInfoRequired username,password" option, the application should prompt the user for their credentials. Gnome applications and Firefox do this correctly, LO doesn't. I've tracked an upstream bug about it, and added it to this bug.

Changed in df-libreoffice:
importance: Unknown → High
status: Unknown → Confirmed
penalvch (penalvch)
summary: - Unable to print to password protected (cups) printer
+ [Upstream] Unable to print to password protected (cups) printer
Revision history for this message
In , Dennis Schridde (devurandom) wrote :

Is this a duplicate of bug #48414?

Revision history for this message
In , Dennis Schridde (devurandom) wrote :

Is this a duplicate of bug #48414?

Revision history for this message
Dennis Schridde (devurandom) wrote :
Revision history for this message
In , Sam Morris (yrro) wrote :

(In reply to comment #4)
> Is this a duplicate of bug #48414?

I think so. My understanding of the original report is:

 * There is no way to authenticate when printing using CUPS on the network [to a printer with AuthInfoRequired username,password in its printers.conf entry]

 * Whereas, in OpenOffice.org 1.2, there is a pop-up window requesting authentication [when attempting to print to such a printer]

Revision history for this message
In , Sam Morris (yrro) wrote :

(In reply to comment #4)
> Is this a duplicate of bug #48414?

I think so. My understanding of the original report is:

 * There is no way to authenticate when printing using CUPS on the network [to a printer with AuthInfoRequired username,password in its printers.conf entry]

 * Whereas, in OpenOffice.org 1.2, there is a pop-up window requesting authentication [when attempting to print to such a printer]

Revision history for this message
In , Thijs Kinkhorst (kink) wrote :

*** Bug 48414 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thijs Kinkhorst (kink) wrote :

*** Bug 48414 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thijs Kinkhorst (kink) wrote :

Yes, it's the same issue. For example Evince, Firefox and OpenOffice will have an authentication popup, LibreOffice lacks this functionality which makes the printing fail.

Revision history for this message
In , Thijs Kinkhorst (kink) wrote :

Yes, it's the same issue. For example Evince, Firefox and OpenOffice will have an authentication popup, LibreOffice lacks this functionality which makes the printing fail.

Revision history for this message
In , Caolanm (caolanm) wrote :

We do set a password handler via cupsSetPasswordCB which I imagine is what should then get called under these circumstances, but it doesn't work for me either while it does in evince.

Odd

Revision history for this message
In , Caolanm (caolanm) wrote :

We do set a password handler via cupsSetPasswordCB which I imagine is what should then get called under these circumstances, but it doesn't work for me either while it does in evince.

Odd

Revision history for this message
In , Caolanm (caolanm) wrote :

Apparently we need to search for auth-info-required in the cups attributes and set auto-info on the job. afaik we never did this and either OOo 1.2 doesn't/didnt work, or worked for some unrelated reason

Revision history for this message
In , Caolanm (caolanm) wrote :

Apparently we need to search for auth-info-required in the cups attributes and set auto-info on the job. afaik we never did this and either OOo 1.2 doesn't/didnt work, or worked for some unrelated reason

Revision history for this message
In , Caolanm (caolanm) wrote :

Created attachment 104625
something along these line, if I can figure out the right way to transmit the username+password to cups

Revision history for this message
In , Caolanm (caolanm) wrote :

Created attachment 104625
something along these line, if I can figure out the right way to transmit the username+password to cups

Revision history for this message
Torbjorn (moa) wrote :

I feel this problem is much bigger than "just" LibreOffice.

I have a freshly installed Ubuntu 14.04.1 with KDE desktop, and I cannot print to a printer that requires authentication from anything that I have tried, except Firefox. All other applications that I've tried fail to print, including "lpr" and "lp" on the command line.

So I believe this bug should be brought to the attention of KDE developers and probably cups also. At least.

Revision history for this message
In , Adolfo Jayme Barrientos (fitojb) wrote :
Revision history for this message
In , Adolfo Jayme Barrientos (fitojb) wrote :
Revision history for this message
In , Vstuart-foote (vstuart-foote) wrote :

Adolfo, Caolán, *

Setting back to NEW. I could be wrong butI don't believe the commit listed (from bug 84757) is actually against this CUPS authentication issue--although it was annotated such in gerrit review, removed the whiteboard notation.

Stuart

Revision history for this message
In , Vstuart-foote (vstuart-foote) wrote :

Adolfo, Caolán, *

Setting back to NEW. I could be wrong butI don't believe the commit listed (from bug 84757) is actually against this CUPS authentication issue--although it was annotated such in gerrit review, removed the whiteboard notation.

Stuart

Revision history for this message
In , Matth7w (matth7w) wrote :

I've found a workaround - you can set LibreOffice to use the system's native print dialog.

Steps:

- Navigate to Tools -> Options -> LibreOffice -> Advanced.
- Check "Enable experimental features"
- Change to LibreOffice -> General tab
- Under heading "Print dialogs", Uncheck "Use LibreOffice Dialogs"

I hope this provides some relief to users who have been waiting a long time for a fix

Revision history for this message
In , Dparsons-b (dparsons-b) wrote :

The workaround of using native print dialogs fails on Gnome 3.22 (Debian unstable), where it crashes OOo 5.2.2 with warnings (see Debian bug#839701):
  GLib-GObject-CRITICAL **: g_object_new_valist: invalid unclassed object pointer for value type 'GtkPrinter'
  Gtk-CRITICAL **: gtk_printer_get_backend: assertion 'GTK_IS_PRINTER (printer)' failed

A more reliable workaround might instead be to print to PDF.

Revision history for this message
In , Dparsons-b (dparsons-b) wrote :

I've reported the native (gtk3/gnome) print dialog crash in bug#102999.

Revision history for this message
In , Qa-admin-q (qa-admin-q) wrote :

** Please read this message in its entirety before responding **

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.

If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not
appropriate in this case)

If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3
. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword

Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug

Revision history for this message
In , Beluga (beluga) wrote :

*** Bug 114590 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Libreoffice-commits (libreoffice-commits) wrote :

Caolán McNamara committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/+/223eac2d666263b127a7e774fd74352581a9209f%5E%21

rhbz#1691287 tdf#53029 ui prompt for printer authentication

It will be available in 6.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.

Revision history for this message
In , Caolanm (caolanm) wrote :

I'm not entirely sure that all duplicates and sub issues are the same thing, so if there are remaining issues after this commit open a new bug for them rather than reopening this one

Revision history for this message
In , Libreoffice-commits (libreoffice-commits) wrote :

Caolán McNamara committed a patch related to this issue.
It has been pushed to "libreoffice-6-2":

https://git.libreoffice.org/core/+/a9c00875cfe90920940586d350f8be6898f3e536%5E%21

rhbz#1691287 tdf#53029 ui prompt for printer authentication

It will be available in 6.2.4.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in libreoffice (Ubuntu):
status: Confirmed → Incomplete
Changed in df-libreoffice:
importance: High → Unknown
status: Confirmed → Unknown
Revision history for this message
In , John-williams-s (john-williams-s) wrote :

This bug is still present in LO 6.3.0.4.

On Fedora 30, Evolution, Evince etc. print fine to a network printer that needs authorisation. LO prompts for a password but the login fails. This may be due to the need in my organisation to specify the domain as well as the username. The standard Gnome password prompter allows this, but the LO prompt does not.

I tried using the convention domain\username but that failed too. I also tried looking in Tools->Options->LO->General (and Print) after enabling Experimental features, but there is no option to not use LO print dialogs.

Thanks so much for this wonderful software! This is the only problem I've ever had with it, after years and years of use.

Revision history for this message
In , Caolanm (caolanm) wrote :

what is the output of...

sudo grep AuthInfoRequired /etc/cups/printers.conf

my one says...
AuthInfoRequired domain,username,password
and I got a dialog with three entries, one for each.

Revision history for this message
In , Miro-janosik+docfoundation (miro-janosik+docfoundation) wrote :

Tested in 6.2.4.2, fixed.

Revision history for this message
In , Libreoffice-commits (libreoffice-commits) wrote :

Caolán McNamara committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/+/931b63db1ce15b309eb6f879f1da992986bf974d%5E%21

Related: tdf#53029 escape backslash in username for 'domain\username'

It will be available in 6.4.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.

Changed in df-libreoffice:
importance: Unknown → High
status: Unknown → Fix Released
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Synchronising bug status with upstream.

Changed in libreoffice (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.