Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69915 - cups 1.1.22 won't print using samba
Summary: cups 1.1.22 won't print using samba
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-02 21:57 UTC by Todor Zviskov
Modified: 2004-12-24 05:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Todor Zviskov 2004-11-02 21:57:56 UTC
The samba support (authentication part?) in net-print/cups-1.1.22 seems to be broken as I always get:

NT_STATUS_ACCESS_DENIED
and
Unable to connect to SAMBA host, will retry in 60 seconds...

However, local printers worked. I was using the same config files I used with my older version of cups. I tried setting debug and debug2 in the cups.conf but that didn't give any detailed information. I even tried re-emerging ghostscript, foomatic, etc. and even samba without any success. Downgrading to 1.1.20-r5 fixed it all.

Reproducible: Always
Steps to Reproduce:
1. emerge =net-print/cups-1.1.22
2. /etc/init.d/cupsd start
3. lp -P SambaPrinter something.txt
Actual Results:  
Job is queued but never prints

Expected Results:  
Job prints

# emerge info
Portage 2.0.51-r2 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20041021-r0,
2.6.9-LNX i686)
=================================================================
System uname: 2.6.9-LNX i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.5
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -mfpmath=sse -msse2 -mmmx -O3 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -mfpmath=sse -msse2 -mmmx -O3 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/bmg-main"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi berkdb bitmap-fonts bonobo breakme cdr crypt cups
encode esd f77 foomaticdb gdbm gif gimpprint gnome gpm gtk gtk2 gtkhtml hal
imlib java jpeg kde ldap libg++ libwww lirc lzw-tiff mad mikmod mmx motif
mozilla mpeg ncurses nls nptl nptlonly oggvorbis opengl oss pam pdflib perl png
ppds python quicktime readline samba scanner sdl slang spell sse ssl svga tcltk
tcpd tiff truetype usb wmf x86 xml2 xmms xorg xorg-x11 xv zlib"
Comment 1 Cybje 2004-11-04 04:37:22 UTC
I have been able to reproduce this bug, though have not been able to fix the bug. Somehow you always get NT_STATUS_ACCESS_DENIED, but connecting to the printer using the smbclient command works fine with the same user/pass. I have checked the config files, the right user/pass are in them (the web interface never shows them, so I checked them to be sure).
Comment 2 Andrew Roberts 2004-11-17 10:10:06 UTC
CUPS authentication has changed slightly with version 1.1.22. See samba bug #1892, which is fixed in 3.0.8.  https://bugzilla.samba.org/show_bug.cgi?id=1892

cups >= 1.1.22 should depend on samba >= 3.0.8

My tests confirm samba 3.0.8-r1 is still backwards compatible with cups-1.1.20-r5 for this issue.
Comment 3 Todor Zviskov 2004-11-17 15:41:22 UTC
@2: No, samba 3.0.8 does NOT fix anything as I already had 3.0.8 when I initially filed this bug.

As far as my investigation goes, it seems that there have been changes in cups > 1.1.20 and the uri uses different format. Unfortunatelly I don't think there is anything to be patched. The best that can be done by the cups ebuild maintainer, in my opinion, is to have einfo after the merge of cups > 1.1.20 statig that the smb format has been changed. Now, about the change itself:

Used to be: smb://user:pass@wrkgrp/host/share
>cups-1.1.20: smb://wrkgrp/user:pass@host/share

Hope this helps. I had to find it the hard way after not having cups working with samba in Mandrake 10.1. Found the info about the change somewhere on the web (google it and it'll pop up)...
Comment 4 Todor Zviskov 2004-11-17 17:53:24 UTC
Actually I was wrong (kinda) - samba-3.0.8-r1 does fix cups-1.1.22
Comment 5 Billy Holmes 2004-11-19 07:57:19 UTC
I had the same issue. I had to add these entries to my package.keywords:

<net-print/cups-1.1.23          ~amd64
<net-fs/samba-3.0.9             ~amd64

in order to get cups 1.1.22 and samba 3.0.8-r1.

with both installed my problem went away.

Comment 6 Heinrich Wendel (RETIRED) gentoo-dev 2004-12-24 05:56:25 UTC
fixed the depend string