Error when try to windows shared printer in AD environment

Bug #613611 reported by Alessandro Mendolia
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
New
Undecided
Unassigned

Bug Description

When try to print test page to a windows shared printer i get this error:
"Idle - /usr/lib/cups/backend/smb fail"

Testing this in a fresh installation (ubuntu 10.04).

This machine is joined to Active Directory domain via Winbind+Kerberos configuration.

tail /var/log/cups/error_log

D [04/Aug/2010:21:27:36 +0200] [Job 4] %%DocumentMedia: plain 595 842 0 () ()
D [04/Aug/2010:21:27:36 +0200] [Job 4] %%BoundingBox: 0 0 595 842
D [04/Aug/2010:21:27:36 +0200] [Job 4] %%Pages: 1
D [04/Aug/2010:21:27:36 +0200] [Job 4] %%EndComments
D [04/Aug/2010:21:27:36 +0200] [Job 4] Before copy_prolog - %%BeginDefaults
D [04/Aug/2010:21:27:36 +0200] [Job 4] Backend returned status 1 (failed)
D [04/Aug/2010:21:27:36 +0200] [Job 4] End of messages
D [04/Aug/2010:21:27:36 +0200] [Job 4] printer-state=3(idle)
D [04/Aug/2010:21:27:36 +0200] [Job 4] printer-state-message="/usr/lib/cups/backend/smb failed"
D [04/Aug/2010:21:27:36 +0200] [Job 4] printer-state-reasons=none

cat printers.conf

# Printer configuration file for CUPS v1.4.3
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<DefaultPrinter BN>
Info BN
Location
MakeModel HP LaserJet 1200 Foomatic/pxlmono (recommended)
DeviceURI smb://BITNET/S-01/BN
State Idle
StateTime 1280950052
Type 8400916
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-postscript 100 foomatic-rip
Filter application/vnd.cups-pdf 0 foomatic-rip
Filter application/vnd.cups-command 0 commandtops
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>
<Printer KONICA-MINOLTA-C450>
Info KONICA MINOLTA C450
Location
MakeModel KONICA MINOLTA C450 PS(P)
DeviceURI smb://BITNET/S-01/BN
State Idle
StateTime 1280950056
Type 8401100
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-command 0 commandtops
Filter application/vnd.cups-postscript 0 -
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>

ls -l /usr/lib/cups/backend/smb

lrwxrwxrwx 1 root root 21 2010-08-02 21:41 /usr/lib/cups/backend/smb -> ../../../bin/smbspool

cups version: 1.4.3-1
samba version: 2:3.4.7~dfsg-1ubuntu3

I expect the ability to print with the credental of logged user (binding to AD works), but something seems not working...

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: cups 1.4.3-1
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic i686
Architecture: i386
CurrentDmesg:
 [ 18.300065] eth1: no IPv6 routers present
 [ 27.632870] end_request: I/O error, dev fd0, sector 0
 [ 27.660195] end_request: I/O error, dev fd0, sector 0
Date: Wed Aug 4 21:58:08 2010
ExecutablePath: /usr/sbin/cupsd
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
Lpstat:
 device for BN: smb://BITNET/S-01/BN
 device for KONICA-MINOLTA-C450: smb://BITNET/S-01/BN
Lsusb:
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: innotek GmbH VirtualBox
Papersize: a4
PpdFiles:
 KONICA-MINOLTA-C450: KONICA MINOLTA C450 PS(P)
 BN: HP LaserJet 1200 Foomatic/pxlmono (recommended)
ProcAttrCurrent: /usr/sbin/cupsd (enforce)
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-21-generic root=UUID=fdefc824-44b4-4edf-8383-505efae1efa2 ro quiet splash
ProcEnviron: PATH=(custom, no user)
SourcePackage: cups
dmi.bios.date: 12/01/2006
dmi.bios.vendor: innotek GmbH
dmi.bios.version: VirtualBox
dmi.modalias: dmi:bvninnotekGmbH:bvrVirtualBox:bd12/01/2006:svninnotekGmbH:pnVirtualBox:pvr1.2:
dmi.product.name: VirtualBox
dmi.product.version: 1.2
dmi.sys.vendor: innotek GmbH

Revision history for this message
Alessandro Mendolia (alessandro-mendolia) wrote :
Revision history for this message
Mitch Towner (kermiac) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage. I have classified this bug as a bug in cups.

When reporting bugs in the future please use apport, either via the appropriate application's "Help -> Report a Problem" menu or using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

This is possibly related to Bug #482836.

affects: ubuntu → cups (Ubuntu)
Revision history for this message
Alessandro Mendolia (alessandro-mendolia) wrote :

I see Bug #482836 but don't seem the same problem.

I noticed that the 'only procedure that works is to:

1. machine to join the domain
2. print a test page from a local user (request AD username and password )
3. then prints work with every AD users logged on linux box ...

I try to copy the files printers.conf and *. ppd from a properly working pc to another pc and I see the printers but I find in /var/log/cups/error_log:

D [28/Aug/2010:03:13:16 +0200] [Job 6] Starting process "kid3" (generation 1)
D [28/Aug/2010:03:13:16 +0200] [Job 6] Starting process "kid4" (generation 2)
D [28/Aug/2010:03:13:16 +0200] [Job 6] Starting process "renderer" (generation 2)
D [28/Aug/2010:03:13:16 +0200] [Job 6] JCL: 2345X@PJL
D [28/Aug/2010:03:13:16 +0200] [Job 6] @PJL SET ECONOMODE=OFF
D [28/Aug/2010:03:13:16 +0200] [Job 6] @PJL SET BITSPERPIXEL=2
D [28/Aug/2010:03:13:16 +0200] [Job 6] @PJL SET DENSITY=3
D [28/Aug/2010:03:13:16 +0200] [Job 6] @PJL SET RET=MEDIUM
D [28/Aug/2010:03:13:16 +0200] [Job 6] @PJL SET COPIES=1
D [28/Aug/2010:03:13:16 +0200] [Job 6] @PJL SET MANUALFEED=OFF
D [28/Aug/2010:03:13:16 +0200] [Job 6] <job data> 2345X@PJL RESET
D [28/Aug/2010:03:13:16 +0200] [Job 6]
D [28/Aug/2010:03:13:16 +0200] [Job 6]
D [28/Aug/2010:03:13:16 +0200] [Job 6] renderer exited with status 0
D [28/Aug/2010:03:13:16 +0200] [Job 6] kid4 received signal 13
D [28/Aug/2010:03:13:16 +0200] [Job 6] kid3 finished
D [28/Aug/2010:03:13:16 +0200] [Job 6] Kid3 exit status: 0
D [28/Aug/2010:03:13:16 +0200] [Job 6]
D [28/Aug/2010:03:13:16 +0200] [Job 6] Closing foomatic-rip.
D [28/Aug/2010:03:13:16 +0200] [Job 6] Backend returned status 1 (failed)
D [28/Aug/2010:03:13:16 +0200] [Job 6] End of messages
D [28/Aug/2010:03:13:16 +0200] [Job 6] printer-state=3(idle)
D [28/Aug/2010:03:13:16 +0200] [Job 6] printer-state-message="/usr/lib/cups/backend/smb failed"
D [28/Aug/2010:03:13:16 +0200] [Job 6] printer-state-reasons=none

Is a veery strange problem that make me crazy... (i have to configure about 100 pc :-| )

Revision history for this message
Etienne Goyer (etienne-goyer-outlands) wrote :

Alessandro, the reason your procedure work is that the username/password you provide in step 2. gets hard-coded in /etc/cups/printers.conf. I am fairly sure that's not what you want! :)

I give a bit more background on the problem in bug #788167, and marking this one as duplicate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.