Bug 9179 - AuthInfoRequired username,password
Summary: AuthInfoRequired username,password
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.5
Classification: Unclassified
Component: Printing (show other bugs)
Version: 3.5.10
Hardware: x86 Linux
: P5 critical
Target Milestone: ---
Assignee: printing-maintainers
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-19 16:48 UTC by suporte
Modified: 2018-03-27 21:03 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description suporte 2012-09-19 16:48:59 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:

<Printer TiLaser_dell>
Info TiLaser_dell
Location dell
MakeModel HP LaserJet M1120 MFP Foomatic/foo2xqx (recommended)
DeviceURI smb://user:password@IP/sharedPrintersName
State Idle
StateTime 1348070576
Type 8425492
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-postscript 0 foomatic-rip
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
Comment 1 Andreas Schneider 2012-09-20 09:12:35 UTC
Which cups version are you running?

Do you use smbspool as the CUPS backend?

Do you use kerberos for authentication?
Comment 2 Andreas Schneider 2012-09-20 09:16:38 UTC
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


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.
Comment 3 suporte 2012-09-20 12:03:01 UTC
(In reply to comment #1)
> Which cups version are you running?

libgnomecups-0.2.3-9.el6.x86_64
cups-1.4.2-48.el6.x86_64
cups-libs-1.4.2-48.el6.x86_64
cups-libs-1.4.2-48.el6.i686
cups-pk-helper-0.0.4-12.el6.x86_64
gutenprint-cups-5.2.5-2.el6.x86_64

 
> Do you use smbspool as the CUPS backend?

hum, i dont know, i think yes ! in the printers.conf i have:

DeviceURI smb://user:password@IP/sharedPrintersName

smbspool --help
Usage: smbspool [DEVICE_URI] job-id user title copies options [file]
       The DEVICE_URI environment variable can also contain the
       destination printer:

           smb://[username:password@][workgroup/]server[:port]/printer

> Do you use kerberos for authentication?
no
Comment 4 suporte 2012-09-20 12:13:21 UTC
(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:
AuthInfoRequired none
or comment
#AuthInfoRequired none

> 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
Comment 5 Fabio Rossi 2016-05-05 18:35:44 UTC
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
Comment 6 Björn Jacke 2018-03-27 21:03:44 UTC
does not look like a samba bug. But I know that setting up a Samba/CUPS print server with krb5 authentication can be a challenge. Maybe someone wants to improve the wiki for that topic.