Bug 98191

Summary: Print server authentication configuration is confusing
Product: [Unmaintained] kdeprint Reporter: Dik Takken <kde>
Component: kjobviewerAssignee: KDEPrint Devel Mailinglist <kde-print-devel>
Status: CLOSED UNMAINTAINED    
Severity: normal CC: jlayt
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dik Takken 2005-01-30 12:55:13 UTC
Version:            (using KDE KDE 3.3.2)
Installed from:    Gentoo Packages
OS:                Linux

When I try to cancel a print job from the job viewer, it says I don't have rights to do that. So, I open Konsole and enter:

lprm <jobnumber>

and the job is cancelled without problems. I entered the command without using 'su' to change user. So, kjobviewer is wrong about my user rights.


I use the CUPS printing system.
Comment 1 Kurt Pfeifle 2005-01-30 13:55:18 UTC
"So, kjobviewer is wrong about my user rights."
----

Not necessarily.   ;-)

You may have told KDEPrint/kprinter to "log in" to the CUPS server under a different account than your system user. It may be using "anonymous"...

Please show us/me your "kdeprintrc" and "kprinterrc" files:

  cat $KDEHOME/share/config/kprinterrc
  cat $KDEHOME/share/config/kpderintrc

Cheers,
Kurt
Comment 2 Dik Takken 2005-01-31 10:33:57 UTC
Wow, this is stupid. It does indeed try to access CUPS anonymously. Has that ever been the default setting? I can't remember turning this option on myself.. :) 

Anyway, why is this configurable in the first place? Can't kdeprint automatically find out how to access CUPS by trying both user and anonymous access? Or at least pop up a message saying that it is configured for anonymous access and telling me it might be worth trying to turn that option off. Or even better: It should offer to turn anonymous access off. Some people will have big trouble finding that option. Might save people like me some config problems.. :)
Comment 3 Michael Goffioul 2005-01-31 12:03:07 UTC
Well, by default KDEPrint uses the same username as CUPS (through the cupsUser() API call). Afterwards, this settings is saved in KDEPrint config file. So normally, this *should* work as expected. The best is to try from a fresh new account and see the default username in KDEPrint Settings dialog (accessible from the print dialog). Can you check that? In case the problem still exists, could you provide your system-wide kdeprintrc ($KDEDIR/share/config/kdeprintrc)?

Michael.
Comment 4 Cristian Tibirna 2005-09-27 07:09:36 UTC
Dik? Did you check (as per comment #3)?

Thanks
Comment 5 Dik Takken 2005-09-27 09:55:31 UTC
Didn't check that yet, thanks for reminding me.
Comment 6 Dik Takken 2006-03-04 22:12:39 UTC
I checked and the default setting is to access CUPS using the user name of the user that is loggin in on KDE. So, the default settings are working perfectly.

There are some things that are quite confusing about the configuration settings:

* When you uncheck the 'anonymous access' checkbox and press OK without providing a username, KPrinter just enables anonymous access again.
* It is unclear why you need to provide a username and password. The impression I get is that this is needed only when I need to access it using another user than myself.

I would suggest to use a radiobutton widget that provides three choices, of which you can choose only one:

* Access anonymously
* Access using my own username
* Access using custom username and password

When the third option is selected, the username/password line-edits should become accessible. Otherwise, they should stay grayed-out.

I will rename the bugreport to reflect the actual problem of confusingness. 
Comment 7 John Layt 2009-01-01 21:38:50 UTC
KDEPrint in KDE3 is unmaintained and will have no more new features
implemented.  This request will never be implemented in KDEPrint as a result.  

In KDE4 kjobviewer has been replaced by printer-applet which uses
system-config-printer as a backend.

Closing.