[Pkg-samba-maint] Bug#491881: smbclient: /usr/lib/cups/backend/smb does not try port 139 anymore by default

Florian Kulzer florian.kulzer+debian at icfo.es
Tue Jul 22 16:24:19 UTC 2008

Package: smbclient
Version: 2:3.2.0-3
Severity: normal


the upgrade to 2:3.2.0-3 broke SMB-based printing for me. My local CUPS
server can no longer access the smb://... printers on our print server
(which runs Samba 3.0.30). The log shows "Connection failed:
NT_STATUS_CONNECTION_REFUSED" (4x), then "Unable to connect to CIFS
host, will retry in 60 seconds...", etc.

Comparing the new and the old version of /usr/lib/cups/backend/smb using
strace, I saw that the old version tries to connect on two ports, 445
and 139, while the new version only tries port 445. Our server accepts
print jobs only via port 139; I always understood that this is
acceptable behavior. (The new version of smbclient, for example, still
works normally with our server, using port 139 if no "-p" option is

As a workaround I now have to specify port 139 explicitly in all
DeviceURIs in /etc/cups/printers.conf.

If this change in the behavior of the SMB backend was intentional then I
suggest mentioning this in NEWS.Debian.gz to inform users that they may
have to change their printer.conf if they want to access printers on
Samba 3.0* servers. (Please downgrade this bug report to wishlist
severity in this case.)

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-flo (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages smbclient depends on:
ii  libc6                2.7-12              GNU C Library: Shared libraries
ii  libcap1              1:1.10-14           support for getting/setting POSIX.
ii  libcomerr2           1.41.0-3            common error description library
ii  libkrb53             1.6.dfsg.4~beta1-3  MIT Kerberos runtime libraries
ii  libldap-2.4-2        2.4.10-2+lenny1     OpenLDAP libraries
ii  libncurses5          5.6+20080713-1      shared libraries for terminal hand
ii  libpopt0             1.14-4              lib for parsing cmdline parameters
ii  libreadline5         5.2-3               GNU readline and history libraries
ii  libtalloc1           1.2.0~git20080616-1 hierarchical pool based memory all
ii  libwbclient0         2:3.2.0-3           client library for interfacing wit
ii  samba-common         2:3.2.0-3           Samba common files used by both th

smbclient recommends no packages.

Versions of packages smbclient suggests:
ii  smbfs                         2:3.2.0-3  mount and umount commands for the 

-- no debconf information

More information about the Pkg-samba-maint mailing list