[Pkg-samba-maint] Bug#931717: samba: CUPS printing fails with NT_STATUS_LOGON_FAILURE in 4.9.11+dfsg-1

Yuri D'Elia wavexx at thregr.org
Thu Jul 18 16:17:17 BST 2019

Package: smbclient
Version: 2:4.9.11+dfsg-1
Followup-For: Bug #931717

Here's the thing: if you replace /usr/lib/cups/backend/smb with a shell
script that simply calls smbspool:

exec /usr/bin/smbspool "$@"

it works. I wanted to debug if DEVICE_URI was set correctly, and it is.
The documentation of smbspool mentions that it tries to use ARGV[0] if
it starts with a smb:// prefix.

I assume cups sets ARGV[0] to the internal device_uri, which strips the
username/password (as seen in the web interface) and smbspool will now
take this value instead of DEVICE_URI.

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (800, 'experimental'), (500, 'unstable-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-rt-amd64 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages smbclient depends on:
ii  dpkg          1.19.7
ii  libarchive13  3.3.3-4
ii  libbsd0       0.9.1-2
ii  libc6         2.28-10
ii  libpopt0      1.16-12
ii  libreadline8  8.0-2
ii  libsmbclient  2:4.9.11+dfsg-1
ii  libtalloc2    2.1.14-2
ii  libtevent0    0.9.37-1
ii  samba-common  2:4.9.11+dfsg-1
ii  samba-libs    2:4.9.11+dfsg-1

smbclient recommends no packages.

Versions of packages smbclient suggests:
ii  cifs-utils       2:6.8-2
pn  heimdal-clients  <none>

More information about the Pkg-samba-maint mailing list