Bug 271957 - NO GUI prompt for CUPS servers that require authentication
Summary: NO GUI prompt for CUPS servers that require authentication
Status: RESOLVED UNMAINTAINED
Alias: None
Product: system-config-printer-kde
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Jonathan Riddell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-29 10:00 UTC by leiz
Modified: 2013-11-23 20:34 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description leiz 2011-04-29 10:00:43 UTC
Version:           unspecified (using KDE 4.4.5) 
OS:                Linux

When a system is set up with a CUPS server that require authentication, the authentication prompt is on the command line only. As a result, someone who launches system-config-printer-kde from a GUI tool will never see the password prompt and can't properly use system-config-printer-kde.

Reproducible: Always

Steps to Reproduce:
Run kcmshell4 system-config-printer-kde

Actual Results:  
I see a prompt as follows on the command line.

Password for my_username on print_server_name

Expected Results:  
I get a GUI password prompt instead

The prompt is coming from CUPS. I see the same text prompt when I run "cupsctl".

I tried setting stdin to /dev/null, but I still get it.

While this is not a problem when someone launches system-config-printer-kde from the command line, I image the majority of the users access system-config-printer-kde through systemsettings.

When launching from the command line, I don't see the printer setup GUI until I take some action, e.g. press ctrl+d.
Comment 1 Michael Duelli 2011-06-24 17:47:48 UTC
I also experience this on a Gentoo system with KDE 4.6.3 for quite a while now.

We have a remote CUPS server that requires authentication via https/ipp.

It is not possible to print with KDE apps to a remote CUPS printer without locally configuring it, since KDE apps do not ask for the password for printing. Instead, print jobs will hang until they are manually killed.

GNOME apps (like Firefox or LibreOffice) simply ask for the password.
Comment 2 Michael Duelli 2011-06-24 17:54:30 UTC
(In reply to comment #1)

I should add here that we use the advertisement functionality of CUPS to see the remove printers on the CUPS server. (This part works fine!)
Comment 3 Blindauer Emmanuel 2012-02-06 14:55:24 UTC
I confirm the bug, it would be nice to get this working
(btw, firefox or libreoffice ask a password, but only with a gnome desktop)
Comment 4 Raul Kde Bugzilla 2013-01-02 19:59:42 UTC
I confirm this on ubuntu 12.10

This might also help:

Traceback (most recent call last):
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 437, in on_tvMainList_cursor_changed
    self.fillServerTab()
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 1786, in fillServerTab
    self.server_settings = self.cups.adminGetServerSettings()
  File "/usr/share/kde4/apps/system-config-printer-kde/authconn.py", line 218, in <lambda>
    return lambda *args, **kwds: self._authloop (fname, fn, *args, **kwds)
  File "/usr/share/kde4/apps/system-config-printer-kde/authconn.py", line 226, in _authloop
    if self._perform_authentication () == 0:
  File "/usr/share/kde4/apps/system-config-printer-kde/authconn.py", line 405, in _perform_authentication
    self._perform_authentication_with_dialog ()
  File "/usr/share/kde4/apps/system-config-printer-kde/authconn.py", line 462, in _perform_authentication_with_dialog
    d = AuthDialog (parent=self._parent)
NameError: global name 'AuthDialog' is not defined
Comment 5 Raul Kde Bugzilla 2013-01-02 20:08:31 UTC
The best way to reproduce is to configure a printer in cups that requires a password.

This is best accomplished changing the directive OpPolicy from default to  authenticated in a printer in /etc/cups/printer.conf

Try to print with it using lp[r].   
(Note that this is best seen remotely, as a local print server could skip the authentication.)
A dialog will ask for the password.

Now open a KDE application like kate from a terminal and try to print from it.
The same dialog will show in the terminal.
Comment 6 krienke 2013-04-18 11:56:30 UTC
Can confirm bug on openSuSE 12.3 running KDE 4.10

Rainer
Comment 7 krienke 2013-05-29 08:44:14 UTC
There is another bug report that describes the same problem:

https://bugs.kde.org/show_bug.cgi?id=230522

After all it seems to be a qt bug, and voting for this qt-bug is recommended (see description  of bug 230522). Perhaps this could help to get the bug finally fixed.
Comment 8 Christoph Feck 2013-11-23 20:34:24 UTC
"system-config-printer-kde" is no longer maintained and has been replaced with "Print Manager" since KDE 4.10. The new version is a C++ rewrite of the old Python version, and may still lack some features or have some bugs.

If this or another issue still needs to be addressed in KDE 4.10 or newer, please add a comment, or report it for "Print Manager".