Bug 4482 - USB printer located on a windows machine doesn't print
Summary: USB printer located on a windows machine doesn't print
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Client Tools (show other bugs)
Version: 3.0.24
Hardware: Other Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-01 06:11 UTC by Aleksandr Guidrevitch
Modified: 2007-04-01 07:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksandr Guidrevitch 2007-04-01 06:11:01 UTC
I have a Windows XP Professional machine with Samsung ML-1610 printer installed, attached to USB001 port. Neither cups nor smbspool can print to this printer, none of them produces any errors at any debug level, but basically I think this to be problem of samba. Below is the log at log level = 10. The is setup to enter power saving mode after 5 minutes of inactivity, so when I try the command below it wakes up, but nothing is print out. What I noticed is "LPT1:" in the logs, may be this have something to do with the problem since the printer is connected to USB001. There are no problems in Windows event log too.

Linux joggy 2.6.17-gentoo-r7 #2 PREEMPT Sat Mar 31 20:54:06 EEST 2007 i686 AMD Athlon(tm) XP 2500+ AuthenticAMD GNU/Linux

ag@joggy$ echo something | smbspool smb://JULIA/SAMSUNG 10 ag test 1 ""
INFO: Current debug levels:
  all: True/10
  tdb: False/0
  printdrivers: False/0
  lanman: False/0
  smb: False/0
  rpc_parse: False/0
  rpc_srv: False/0
  rpc_cli: False/0
  passdb: False/0
  sam: False/0
  auth: False/0
  winbind: False/0
  vfs: False/0
  idmap: False/0
  quota: False/0
  acls: False/0
  locking: False/0
  msdfs: False/0
  dmapi: False/0
doing parameter map to guest = bad user
doing parameter security = user
doing parameter encrypt passwords = yes
doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
doing parameter dns proxy = no
pm_process() returned Yes
lp_servicenumber: couldn't find homes
set_server_role: role = ROLE_STANDALONE
Attempting to register new charset UCS-2LE
Registered charset UCS-2LE
Attempting to register new charset UTF-16LE
Registered charset UTF-16LE
Attempting to register new charset UCS-2BE
Registered charset UCS-2BE
Attempting to register new charset UTF-16BE
Registered charset UTF-16BE
Attempting to register new charset UTF8
Registered charset UTF8
Attempting to register new charset UTF-8
Registered charset UTF-8
Attempting to register new charset ASCII
Registered charset ASCII
Attempting to register new charset 646
Registered charset 646
Attempting to register new charset ISO-8859-1
Registered charset ISO-8859-1
Attempting to register new charset UCS2-HEX
Registered charset UCS2-HEX
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
added interface ip=192.168.40.253 bcast=192.168.40.255 nmask=255.255.255.0
added interface ip=86.57.167.126 bcast=86.57.167.255 nmask=255.255.255.0
Connecting to host=JULIA
internal_resolve_name: looking up JULIA#20
Opening cache file at /var/cache/samba/gencache.tdb
Returning valid cache entry: key = NBT/JULIA#20, value = 192.168.40.249:0, timeout = Sun Apr  1 13:58:58 2007
name JULIA#20 found.
Connecting to 192.168.40.249 at port 445
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 0
socket option SO_BROADCAST = 0
socket option TCP_NODELAY = 1
socket option TCP_KEEPCNT = 9
socket option TCP_KEEPIDLE = 7200
socket option TCP_KEEPINTVL = 75
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 16384
socket option SO_RCVBUF = 16384
socket option SO_SNDLOWAT = 1
socket option SO_RCVLOWAT = 1
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
write_socket(4,183)
write_socket(4,183) wrote 183
got smb length of 85
size=85
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=27435
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]=    8 (0x8)
smb_vwv[ 1]= 2563 (0xA03)
smb_vwv[ 2]=  256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]=   17 (0x11)
smb_vwv[ 5]=    0 (0x0)
smb_vwv[ 6]=  256 (0x100)
smb_vwv[ 7]=    0 (0x0)
smb_vwv[ 8]=    0 (0x0)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]=  227 (0xE3)
smb_vwv[11]=61568 (0xF080)
smb_vwv[12]=55608 (0xD938)
smb_vwv[13]=19151 (0x4ACF)
smb_vwv[14]=51060 (0xC774)
smb_vwv[15]=19457 (0x4C01)
smb_vwv[16]=  255 (0xFF)
smb_bcc=16
[000] F7 80 7E 06 CF 53 4F 4E  9B C8 51 58 7E 57 28 40  ..~..SON ..QX~W(@
size=85
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=27435
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]=    8 (0x8)
smb_vwv[ 1]= 2563 (0xA03)
smb_vwv[ 2]=  256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]=   17 (0x11)
smb_vwv[ 5]=    0 (0x0)
smb_vwv[ 6]=  256 (0x100)
smb_vwv[ 7]=    0 (0x0)
smb_vwv[ 8]=    0 (0x0)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]=  227 (0xE3)
smb_vwv[11]=61568 (0xF080)
smb_vwv[12]=55608 (0xD938)
smb_vwv[13]=19151 (0x4ACF)
smb_vwv[14]=51060 (0xC774)
smb_vwv[15]=19457 (0x4C01)
smb_vwv[16]=  255 (0xFF)
smb_bcc=16
[000] F7 80 7E 06 CF 53 4F 4E  9B C8 51 58 7E 57 28 40  ..~..SON ..QX~W(@
Doing spnego session setup (blob length=16)
server didn't supply a full spnego negprot
write_socket(4,166)
write_socket(4,166) wrote 166
got smb length of 273
size=273
smb_com=0x73
smb_rcls=22
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=27435
smb_uid=2048
smb_mid=2
smt_wct=4
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=  273 (0x111)
smb_vwv[ 2]=    0 (0x0)
smb_vwv[ 3]=  156 (0x9C)
smb_bcc=230
[000] A1 81 99 30 81 96 A0 03  0A 01 01 A1 0C 06 0A 2B  ...0.... .......+
[010] 06 01 04 01 82 37 02 02  0A A2 81 80 04 7E 4E 54  .....7.. .....~NT
[020] 4C 4D 53 53 50 00 02 00  00 00 0A 00 0A 00 30 00  LMSSP... ......0.
[030] 00 00 15 02 8A 60 7C A5  EC E3 D1 BB 15 BD 00 00  .....`|. ........
[040] 00 00 00 00 00 00 44 00  44 00 3A 00 00 00 4A 00  ......D. D.:...J.
[050] 55 00 4C 00 49 00 41 00  02 00 0A 00 4A 00 55 00  U.L.I.A. ....J.U.
[060] 4C 00 49 00 41 00 01 00  0A 00 4A 00 55 00 4C 00  L.I.A... ..J.U.L.
[070] 49 00 41 00 04 00 0A 00  6A 00 75 00 6C 00 69 00  I.A..... j.u.l.i.
[080] 61 00 03 00 0A 00 6A 00  75 00 6C 00 69 00 61 00  a.....j. u.l.i.a.
[090] 06 00 04 00 01 00 00 00  00 00 00 00 00 57 00 69  ........ .....W.i
[0A0] 00 6E 00 64 00 6F 00 77  00 73 00 20 00 35 00 2E  .n.d.o.w .s. .5..
[0B0] 00 31 00 00 00 57 00 69  00 6E 00 64 00 6F 00 77  .1...W.i .n.d.o.w
[0C0] 00 73 00 20 00 32 00 30  00 30 00 30 00 20 00 4C  .s. .2.0 .0.0. .L
[0D0] 00 41 00 4E 00 20 00 4D  00 61 00 6E 00 61 00 67  .A.N. .M .a.n.a.g
[0E0] 00 65 00 72 00 00                                 .e.r..
size=273
smb_com=0x73
smb_rcls=22
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=27435
smb_uid=2048
smb_mid=2
smt_wct=4
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=  273 (0x111)
smb_vwv[ 2]=    0 (0x0)
smb_vwv[ 3]=  156 (0x9C)
smb_bcc=230
[000] A1 81 99 30 81 96 A0 03  0A 01 01 A1 0C 06 0A 2B  ...0.... .......+
[010] 06 01 04 01 82 37 02 02  0A A2 81 80 04 7E 4E 54  .....7.. .....~NT
[020] 4C 4D 53 53 50 00 02 00  00 00 0A 00 0A 00 30 00  LMSSP... ......0.
[030] 00 00 15 02 8A 60 7C A5  EC E3 D1 BB 15 BD 00 00  .....`|. ........
[040] 00 00 00 00 00 00 44 00  44 00 3A 00 00 00 4A 00  ......D. D.:...J.
[050] 55 00 4C 00 49 00 41 00  02 00 0A 00 4A 00 55 00  U.L.I.A. ....J.U.
[060] 4C 00 49 00 41 00 01 00  0A 00 4A 00 55 00 4C 00  L.I.A... ..J.U.L.
[070] 49 00 41 00 04 00 0A 00  6A 00 75 00 6C 00 69 00  I.A..... j.u.l.i.
[080] 61 00 03 00 0A 00 6A 00  75 00 6C 00 69 00 61 00  a.....j. u.l.i.a.
[090] 06 00 04 00 01 00 00 00  00 00 00 00 00 57 00 69  ........ .....W.i
[0A0] 00 6E 00 64 00 6F 00 77  00 73 00 20 00 35 00 2E  .n.d.o.w .s. .5..
[0B0] 00 31 00 00 00 57 00 69  00 6E 00 64 00 6F 00 77  .1...W.i .n.d.o.w
[0C0] 00 73 00 20 00 32 00 30  00 30 00 30 00 20 00 4C  .s. .2.0 .0.0. .L
[0D0] 00 41 00 4E 00 20 00 4D  00 61 00 6E 00 61 00 67  .A.N. .M .a.n.a.g
[0E0] 00 65 00 72 00 00                                 .e.r..
Got challenge flags:
Got NTLMSSP neg_flags=0x608a0215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_CHAL_ACCEPT_RESPONSE
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_CHAL_TARGET_INFO
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60080215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP challenge set by NTLM2
challenge is:
[000] E5 2B D1 D6 17 A2 2F 45                           .+..../E
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60080215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
write_socket(4,258)
write_socket(4,258) wrote 258
got smb length of 126
size=126
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=27435
smb_uid=2048
smb_mid=3
smt_wct=4
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=  126 (0x7E)
smb_vwv[ 2]=    1 (0x1)
smb_vwv[ 3]=    9 (0x9)
smb_bcc=83
[000] A1 07 30 05 A0 03 0A 01  00 57 00 69 00 6E 00 64  ..0..... .W.i.n.d
[010] 00 6F 00 77 00 73 00 20  00 35 00 2E 00 31 00 00  .o.w.s.  .5...1..
[020] 00 57 00 69 00 6E 00 64  00 6F 00 77 00 73 00 20  .W.i.n.d .o.w.s.
[030] 00 32 00 30 00 30 00 30  00 20 00 4C 00 41 00 4E  .2.0.0.0 . .L.A.N
[040] 00 20 00 4D 00 61 00 6E  00 61 00 67 00 65 00 72  . .M.a.n .a.g.e.r
[050] 00 00 00                                          ...
size=126
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=27435
smb_uid=2048
smb_mid=3
smt_wct=4
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=  126 (0x7E)
smb_vwv[ 2]=    1 (0x1)
smb_vwv[ 3]=    9 (0x9)
smb_bcc=83
[000] A1 07 30 05 A0 03 0A 01  00 57 00 69 00 6E 00 64  ..0..... .W.i.n.d
[010] 00 6F 00 77 00 73 00 20  00 35 00 2E 00 31 00 00  .o.w.s.  .5...1..
[020] 00 57 00 69 00 6E 00 64  00 6F 00 77 00 73 00 20  .W.i.n.d .o.w.s.
[030] 00 32 00 30 00 30 00 30  00 20 00 4C 00 41 00 4E  .2.0.0.0 . .L.A.N
[040] 00 20 00 4D 00 61 00 6E  00 61 00 67 00 65 00 72  . .M.a.n .a.g.e.r
[050] 00 00 00                                          ...
write_socket(4,86)
write_socket(4,86) wrote 86
got smb length of 50
size=50
smb_com=0x75
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=2048
smb_pid=27435
smb_uid=2048
smb_mid=4
smt_wct=3
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=   50 (0x32)
smb_vwv[ 2]=    1 (0x1)
smb_bcc=9
[000] 4C 50 54 31 3A 00 00 00  00                       LPT1:... .
write_socket(4,80)
write_socket(4,80) wrote 80
got smb length of 65
size=65
smb_com=0x2d
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=2048
smb_pid=27435
smb_uid=2048
smb_mid=5
smt_wct=15
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=   65 (0x41)
smb_vwv[ 2]=16384 (0x4000)
smb_vwv[ 3]=    0 (0x0)
smb_vwv[ 4]=    0 (0x0)
smb_vwv[ 5]=    0 (0x0)
smb_vwv[ 6]=    0 (0x0)
smb_vwv[ 7]=    0 (0x0)
smb_vwv[ 8]=    0 (0x0)
smb_vwv[ 9]=    0 (0x0)
smb_vwv[10]=    0 (0x0)
smb_vwv[11]=    2 (0x2)
smb_vwv[12]=    0 (0x0)
smb_vwv[13]=    0 (0x0)
smb_vwv[14]=    0 (0x0)
smb_bcc=0
size=69
smb_com=0x2f
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=51201
smb_tid=2048
smb_pid=27435
smb_uid=2048
smb_mid=6
smt_wct=12
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=    0 (0x0)
smb_vwv[ 2]=16384 (0x4000)
smb_vwv[ 3]=    0 (0x0)
smb_vwv[ 4]=    0 (0x0)
smb_vwv[ 5]=    0 (0x0)
smb_vwv[ 6]=    0 (0x0)
smb_vwv[ 7]=    0 (0x0)
smb_vwv[ 8]=    0 (0x0)
smb_vwv[ 9]=    0 (0x0)
smb_vwv[10]=   10 (0xA)
smb_vwv[11]=   59 (0x3B)
smb_bcc=10
[000] 73 6F 6D 65 74 68 69 6E  67 0A                    somethin g.
write_socket(4,73)
write_socket(4,73) wrote 73
got smb length of 47
size=47
smb_com=0x2f
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=2048
smb_pid=27435
smb_uid=2048
smb_mid=6
smt_wct=6
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=   47 (0x2F)
smb_vwv[ 2]=   10 (0xA)
smb_vwv[ 3]=65535 (0xFFFF)
smb_vwv[ 4]=    0 (0x0)
smb_vwv[ 5]=    0 (0x0)
smb_bcc=0
write_socket(4,45)
write_socket(4,45) wrote 45
got smb length of 35
size=35
smb_com=0x4
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=2048
smb_pid=27435
smb_uid=2048
smb_mid=7
smt_wct=0
smb_bcc=0
write_socket(4,39)
write_socket(4,39) wrote 39
got smb length of 35
size=35
smb_com=0x71
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=2048
smb_pid=27435
smb_uid=2048
smb_mid=8
smt_wct=0
smb_bcc=0
Comment 1 Aleksandr Guidrevitch 2007-04-01 07:05:02 UTC
The problem is solved and it wasn't related to samba, sorry.

For those who might stuck with something similar, here is how I solved it:
1. I've got linux driver from samsung.com, http://www.samsung.com/support/productsupport/download/Model_Select.aspx?type=Printer&typecode=15&subtype=Laser+Printer&cmssubtypecode=1501&model=ML-1610&filetype=DR&language=
2. unpacked it
3. It wont install on Gentoo, so I copied manually ppd for my printer to /etc/cups/ppd/PrinterName.ppd
4. Since I saw in /var/log/cups/error.log the following string
E [01/Apr/2007:14:24:03 +0300] Filter "rastertosamsungspl" for printer "Samsung" not available: No such file or directory
I've copied cdroot/Linux/i386/at_root/usr/lib/cups/filter/rastertosamsungspl to /usr/libexec/cups/filter/

And it just worked. I spend 2 days googling for this info and have never found an answer, so may be this info will help someone else to bypass similar problems. 

Sorry again for posting to the wrong place