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>
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: 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.
(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
(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
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
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.