The Samba-Bugzilla – Bug 9179
Last modified: 2016-05-06 11:22:21 UTC
When sending a print of Linux in a Windows printer, sometimes the line: AuthInfoRequired username, password appears into /etc/cups/printers.conf and the printer does not print anymore until you remove this line added and restart Cups
In the printers.conf:
MakeModel HP LaserJet M1120 MFP Foomatic/foo2xqx (recommended)
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-postscript 0 foomatic-rip
JobSheets none none
Which cups version are you running?
Do you use smbspool as the CUPS backend?
Do you use kerberos for authentication?
That cups is adding the line is a feature. It got authentication required from the printing server so it adds it.
A workaround is setting:
If I search the web for this problems I got a lot of results. Looks like this was broken in CUPS 1.3 and fixed in 1.4.
So this doesn't look like a Samba bug at all.
(In reply to comment #1)
> Which cups version are you running?
> Do you use smbspool as the CUPS backend?
hum, i dont know, i think yes ! in the printers.conf i have:
Usage: smbspool [DEVICE_URI] job-id user title copies options [file]
The DEVICE_URI environment variable can also contain the
> Do you use kerberos for authentication?
(In reply to comment #2)
> That cups is adding the line is a feature. It got authentication required from
> the printing server so it adds it.
> A workaround is setting:
> AuthInfoRequired none
cups rewrite the line with:
AuthInfoRequired username, password
even if i put:
> If I search the web for this problems I got a lot of results. Looks like this
> was broken in CUPS 1.3 and fixed in 1.4.
> So this doesn't look like a Samba bug at all.
I have not found a solution to this problem on the Web yet
I'm experiencing the same problem after having migrated from samba-3.6.25 to samba-4.2.11. I'm using the smb backend for cups with cups 2.0.3 and I get the following error in /var/log/cups/error_log:
E [05/May/2016:18:26:51 +0200] [Job 325] Session setup failed: NT_STATUS_INTERNAL_ERROR
E [05/May/2016:18:26:51 +0200] [Job 325] Session setup failed: NT_STATUS_ACCESS_DENIED
E [05/May/2016:18:26:51 +0200] [Job 325] Tree connect failed (NT_STATUS_ACCESS_DENIED)
With samba3 there were no problems in printing, with samba4 I cannot print anymore