sne...@lucid-laptop:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"

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.


sne...@lucid-laptop:~$ sudo cat /etc/cups/printers.conf
# 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:passw...@winbox/lj1200
State Idle
StateTime 1281657261
Type 8400916
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-postscript 100 foomatic-rip
Filter application/vnd.cups-pdf 0 foomatic-rip
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):
- Install Lucid
- sudo /etc/init.d/cups start         # for some reason it probably won't start 
automatically out of the box
- System->Administration->Printing
- 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 else it takes on
the way to get back to the "Printing - localhost" window. (Confusingly
you will have to click Cancel in the printer properties even though you
have made changes - those changes are already saved).

If you try to print a test page, it will simply fail with 
NT_STATUS_LOGON_SOMETHING and NT_STATUS_ACCESS DENIED. So, go to gedit, type 
"fgsfdsasdfasdfasd" a few times and hit Print.
'Authentication is required to print document "Unsaved Document 1" on "My 
Awesome Printer"' or some similar message should appear.

Cool, we can type the correct password back in now :)

BUT the document does not print. NT_STATUS_ACCESS_DENIED.

Why not? I entered the correct credentials.

So I go into the printer properties again and set it right there. I
enter my username and password into the Device URI screen and click
"Verify". The print share is accessible. I click "OK".


Go back to gedit and try to print your document. EVERY SINGLE TIME from now on 
it will ask for authentication!


Basically you broke this printer and should just start over, getting the
password right this time.

-- 
printer dialog forgets authentication
https://bugs.launchpad.net/bugs/475686
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to