Bug 430513

Summary: HP Device Manager asks for wrong password
Product: [openSUSE] openSUSE 11.0 Reporter: Juergen Weigert <jw>
Component: PrintingAssignee: Johannes Meixner <jsmeix>
Status: RESOLVED UPSTREAM QA Contact: Johannes Meixner <jsmeix>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: Future/Later   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 357354    

Description Juergen Weigert 2008-09-28 20:46:04 UTC
This is a lenovo x60s laptop, with photosmartc5200serie printer configured.

The HP-Device-Manager /usr/bin/hp-systray offers a tab 'Print Control'
my photosmartc5200serie is currently not configured as default printer,
-> click 'Set as Default'

A popup opens
 'HP Device Manager - Enter Password'
 Password for testy on localhost?
 [        ]
 [OK]

Entering a password there and hitting OK has no effect.
The popup simply reappears. Tested with both correct and incorrect passwords.

The only way to return the focus to the main application is hitting OK without
entering a password.

I do not see a way how to use the functions offered int the 'Print Control' tab.
Comment 1 Johannes Meixner 2008-10-01 21:13:38 UTC
The only default way to use this functionality
(i.e. any printer admin functionality) is to run
it as root so that you can enter the root password
because by default only root is allowed to do
printer admin tasks.

I.e. run hp-toolbox as root.

I assume it works this way for you and then it works as designed
which makes the bug report invalid for the current HPLIP version.
If it does not work as root, reopen the bug report.

Of course the current design is not really user friendly
but perhaps it is the best possible with the current CUPS:

Currently I don't know if the cupsd responds with a
meaningful error code when authentication fails so that
the application could show a meaningful message too
but I guess that because of security no info can be
shown at all why it failed and all what can be done
is to let the popup reappear.

As far as I know the underlying problem is that currently
CUPS does not provide a way to query the cupsd which user
is allowed to do what so that an application program cannot
show meaningful information (e.g. gray-out dialogs for
printer admin functionality if the currently logged in
user is not allowed to do it).

But it would be wrong to show printer admin dialogs
only when root runs the application because any normal
user could be configured in CUPS to be allowed to do
printer admin tasks (via "CUPS operation policies").

But I think it should be at least possible to specify
an arbitrary user for the IPP operations with the cupsd
so that the application could allow to enter both
a user name and a password so that you could enter
"root" and its password even when you run the application
as normal user.
Comment 3 Juergen Weigert 2008-10-02 12:42:58 UTC
I have no choice. 
It is run with whatever user the desktopicon is programmed to.

So the actual issue is:
- the popup prompts for the wrong password (which is beyond my control).
- there should be an error message after typing the password 
  (also beyond my control).

I can accept this as a wontfix (aka cantfix). 
But I still regard it as a valid bug.
Comment 4 Johannes Meixner 2008-10-07 05:55:20 UTC
Of course it is a valid bug (see my comment).
Of course my resolution setting was wrong.
Now it is resolved as UPSTREAM.
Comment 5 Johannes Meixner 2008-10-07 08:54:23 UTC
This was the matching discussion on the CUPS list:

http://www.cups.org/newsgroups.php?gcups.development+T+Q%22CUPS+needs+a+way+to+easilyquery%22