You are not logged in.

#1 2018-06-06 21:15:43

ravv
Member
Registered: 2014-10-19
Posts: 5

[SOLVED] Samba printing with auth broken with samba/smbclient 4.8.1-1

After upgrading smbclient to 4.8.1-1, I can no longer print to a printer URI of the form smb://domain\username:password@hostname/printername. Instead, when I try to print, the printer is disabled with "Unknown reason" in lpstat -p, and in the web interface the print job is simply "Pending".

If I run tail -F /var/log/cups/error_log I get the following clue:

D [06/Jun/2018:23:04:58 +0200] [Job 788] Usage: smb://10.88.1.141/1530-201-c-a2 [DEVICE_URI] job-id user title copies options [file]
D [06/Jun/2018:23:04:58 +0200] [Job 788] The DEVICE_URI environment variable can also contain the
D [06/Jun/2018:23:04:58 +0200] [Job 788] destination printer:
D [06/Jun/2018:23:04:58 +0200] [Job 788] smb://[username:password@][workgroup/]server[:port]/printer
D [06/Jun/2018:23:04:58 +0200] [Job 788] PID 15938 (/usr/lib/cups/backend/smb) stopped with status 1.

As long as there is a print job pending on the printer, the message above appears every time I run cupsenable to re-enable the printer, after which the printer is immediately disabled again (according to lpstat -p).

If I downgrade the following packages, the above message no longer appears in error_log and I can successfully print as before:

cups 2.2.7-2 => 2.2.7-1
libcups 2.2.7-2 => 2.2.7-1
cups-filters 1.20.3-2 => 1.20.3-1
smbclient 4.8.1-1 => 4.7.6-1
samba 4.8.1-1 => 4.7.6-1
libwbclient 4.8.1-1 => 4.7.6-1

Last edited by ravv (2018-06-09 09:42:56)

Offline

#2 2018-06-06 21:51:05

loqs
Member
Registered: 2014-03-06
Posts: 5,989

Re: [SOLVED] Samba printing with auth broken with samba/smbclient 4.8.1-1

Please update to 4.8.2-1 and retest.
Edit:
https://bugs.archlinux.org/task/58732

Last edited by loqs (2018-06-06 21:52:27)

Offline

#3 2018-06-09 09:42:27

ravv
Member
Registered: 2014-10-19
Posts: 5

Re: [SOLVED] Samba printing with auth broken with samba/smbclient 4.8.1-1

Problem solved by updating to 4.8.2-1. Thanks!

Offline

Board footer

Powered by FluxBB