[Samba] Printing from WinCE5.0
vladas
vk928 at gmx.com
Sat Dec 21 11:25:11 UTC 2019
I'm trying to print through network, from WinCE5.0 machine to Debian machine with Samba printer share. The problem is, tht only first 1024 bytes of print data are spooled and printed.
Printing to Samba share from WinXP or Win10 or Win98 works fine. Also printing from WinCE to printer shared on WinXP works fine.
I've tried various smb.conf parameters to no avail. I've viewed Samba logs, but see nothing suspicious. From Wireshark captures it seems that WinCE machine sends print job in multiple "Write Print File" SMB protocol request/response pairs, each request carrying 1024 bytes of data buffer, while Samba doesn't respond after getting first Write request. Tried different smb.conf options conserning printing, authentication and LANMAN protocol, but nothing changes.
I will try to test some earlier Samba versions. But in the meantime, maybe someone has some ideas?
Samba v4.9.5-Debian on Debian v10.2.
Summary of few lines from both communications:
WinCE(.110) -> Samba printer(.100):
____Time________Source__________Destination_________Length____________________________________
3 0.000576770 192.168.56.110 192.168.56.100 SMB 114 Open Print File Request
4 0.004836002 192.168.56.100 192.168.56.110 SMB 95 Open Print File Response, FID: 0xe66f
5 0.120431958 192.168.56.110 192.168.56.100 SMB 1122 Write Print File Request, FID: 0xe66f < Samba server doesn't respond
6 14.53644067 192.168.56.110 192.168.56.100 SMB 121 IOCTL Request < WinCE client time out
WinCE(.110) -> WinXP printer(.50):
3 5.999890000 192.168.56.110 192.168.56.50 SMB 114 Open Print File Request
4 6.016150000 192.168.56.50 192.168.56.110 SMB 95 Open Print File Response, FID: 0x4002
5 6.130776000 192.168.56.110 192.168.56.50 SMB 1122 Write Print File Request, FID: 0x4002
6 6.134142000 192.168.56.50 192.168.56.110 SMB 93 Write Print File Response
7 6.185446000 192.168.56.110 192.168.56.50 SMB 1122 Write Print File Request, FID: 0x4002
8 6.185543000 192.168.56.50 192.168.56.110 SMB 93 Write Print File Response
9 ..................................
My current smb.conf file:
[global]
workgroup = WORK
security = user
lanman auth = yes #no effect
ntlm auth = yes #no effect
server string =
ea support = no #no effect
printing = sysv #no effect
server role = standalone server
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
[homes]
comment = Home Directories
browseable = no
read only = yes
create mask = 0700
directory mask = 0700
valid users = %S
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = no
guest ok = no
writable = no
create mask = 0700
[pcl2pdf]
comment =
path = /var/spool/pcl2pdf #chmod 1777
print command = /usr/local/bin/pdf2 '%f' '%m' '%I' '/home/temp' #tried cups, no effect
guest ok = yes
printable = yes
browsable = yes
writable = no
use client driver = yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = no
read only = yes
guest ok = no
More information about the samba
mailing list