printer dialog forgets authentication
Bug #475686 reported by
Dominic Lachowicz
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gtk+3.0 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
system-config-printer (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I configured a network printer over SMB. I passed in my username/password and checked the "save login credentials" button. Every subsequent time I print, it asks me for my credentials again.
I'm on Karmic. This seems to be a regression from Hardy.
affects: | ubuntu → cups (Ubuntu) |
Changed in cups (Ubuntu): | |
status: | Incomplete → Confirmed |
To post a comment you must log in.
sneaky@ lucid-laptop: ~$ cat /etc/lsb-release RELEASE= 10.04 CODENAME= lucid DESCRIPTION= "Ubuntu 10.04.1 LTS"
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
The win box is windows 2000 Professional.
I'm on Lucid seeing this. Can't try a clean install today but...
In short, an easy workaround. Just delete the printer and replace it. Make sure that you enter the username and password correctly first time. That is the only chance you get.
This bug has something to do with:
- entering the wrong username and password on a samba shared printer adds a line "AuthInfoRequired username,password" to the printer configuration file.
- No matter what username and password are set, programs will prompt every time for the username and password.
- Removing this line (with cups stopped) does not fix the problem; hence there is some other thing wrong here.
NOTE: This file can contain passwords. Be aware of what you paste.
sneaky@ lucid-laptop: ~$ sudo cat /etc/cups/ printers. conf password@ winbox/ lj1200 vnd.cups- raw 0 - vnd.cups- postscript 100 foomatic-rip vnd.cups- pdf 0 foomatic-rip
# Printer configuration file for CUPS v1.4.3
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<DefaultPrinter HP-LaserJet-1200>
AuthInfoRequired username,password
Info HP LaserJet 1200
Location windows test box
MakeModel HP LaserJet 1200 Foomatic/pxlmono (recommended)
DeviceURI smb://user:
State Idle
StateTime 1281657261
Type 8400916
Filter application/
Filter application/
Filter application/
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>
To reproduce (not sure about deps): >Administration ->Printing
- Install Lucid
- sudo /etc/init.d/cups start # for some reason it probably won't start automatically out of the box
- System-
- Click "Add"
- Click "+" to expand "Network Printer"
- Click "Windows Printer Via SAMBA"
- Type the smb path to the appropriate printer, as indicated in the dialog. Also add your username and password.
- Click "Verify"
- Read "The Print Share Is Accessible". Click "OK".
- Click "Forward"
- Pick "HP" (or your printer manufacturer) under "Select printer from database", then click "Forward"
- Pick "LaserJet 1200" or "LaserJet 3" (or whatever). The default (recommended) option in the right pane is good.
- Click "Forward"
- Click "Apply"
- Print as many test pages as you like, it will not ask for a password for test pages!
- lpr will not require a password!
- Double click the new printer in "Printing - localhost" to open its properties page.
- Next to "Device URI" click "Change" and wait (and wait... and wait)
- NOTICE the "Authentication" options in this screen are mostly disabled, it says "Prompt User for authentication if required". That's not what we set earlier!
... So let's enter our password and whatnot, and try looking again. OK, this screen is basically not displaying the entered credentials from before, but I think they're still there.
And we can still print.
- Go back to the "Printing - localhost" window, open the properties page for the printer, click to change the Device URI and this time enter INCORRECT credentials. Click "Apply", "OK", or whatever e...