smbclient truncates win2k shares

Ashwin S Kashyap ashwinsk at mindtree.com
Mon Nov 13 05:51:04 GMT 2000


Hi,
I am running samba (2.0.7 rel 4) on RH6.2.
when i run smbclient -L <some_win2k_m/c> all shares on the win2k m/c are
not displayed. this happens only on a few machines and that shares that
are skipped are always the same.
i ran smbclient -d A -L bg12ashwinsk, please see below
please note that the win2k m/c returns 0B and 0C as the number of shares
returned and the max number of shares available (7 packet, 6th and 8th
bytes). on //bg12ashwinsk, the share "Presentations" is not listed (only
11 of the 12 shares are listed). This happens on a lot of win2k m/cs on
the network.

thanks
ashwin

----------------------------------------------------------------------

added interface ip=172.20.20.101 bcast=172.20.255.255 nmask=255.255.0.0
Client started (version 2.0.7).
resolve_lmhosts: Attempting lmhosts lookup for name bg12ashwinsk<0x20>
getlmhostsent: lmhost entry: 127.0.0.1 localhost 
resolve_hosts: Attempting host lookup for name bg12ashwinsk<0x20>
Connecting to 172.20.22.220 at port 139
write_socket(3,76)
write_socket(3,76) wrote 76
Sent session request
got smb length of 0
size=0
smb_com=0x0
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=0
smb_flg2=0
smb_tid=0
smb_pid=0
smb_uid=0
smb_mid=0
smt_wct=0
smb_bcc=0
 session request ok
write_socket(3,168)
write_socket(3,168) wrote 168
got smb length of 121
size=121
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=13793
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[0]=7 (0x7)
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]=63488 (0xF800)
smb_vwv[12]=65461 (0xFFB5)
smb_vwv[13]=13386 (0x344A)
smb_vwv[14]=49229 (0xC04D)
smb_vwv[15]=46593 (0xB601)
smb_vwv[16]=2302 (0x8FE)
smb_bcc=52
[000] 7D 1C CD 56 97 70 26 2D  4D 00 49 00 4E 00 44 00  }..V.p&-
M.I.N.D.
[010] 54 00 52 00 45 00 45 00  00 00 42 00 47 00 31 00  T.R.E.E.
..B.G.1.
[020] 32 00 41 00 53 00 48 00  57 00 49 00 4E 00 53 00  2.A.S.H.
W.I.N.S.
[030] 4B 00 00 00                                       K... 
size=121
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=13793
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[0]=7 (0x7)
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]=63488 (0xF800)
smb_vwv[12]=65461 (0xFFB5)
smb_vwv[13]=13386 (0x344A)
smb_vwv[14]=49229 (0xC04D)
smb_vwv[15]=46593 (0xB601)
smb_vwv[16]=2302 (0x8FE)
smb_bcc=52
[000] 7D 1C CD 56 97 70 26 2D  4D 00 49 00 4E 00 44 00  }..V.p&-
M.I.N.D.
[010] 54 00 52 00 45 00 45 00  00 00 42 00 47 00 31 00  T.R.E.E.
..B.G.1.
[020] 32 00 41 00 53 00 48 00  57 00 49 00 4E 00 53 00  2.A.S.H.
W.I.N.S.
[030] 4B 00 00 00                                       K... 

write_socket(3,142)
write_socket(3,142) wrote 142
got smb length of 87
size=87
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=13793
smb_uid=2048
smb_mid=1
smt_wct=3
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=87 (0x57)
smb_vwv[2]=0 (0x0)
smb_bcc=46
[000] 57 69 6E 64 6F 77 73 20  35 2E 30 00 57 69 6E 64  Windows
5.0.Wind
[010] 6F 77 73 20 32 30 30 30  20 4C 41 4E 20 4D 61 6E  ows 2000  LAN
Man
[020] 61 67 65 72 00 4D 49 4E  44 54 52 45 45 00        ager.MIN DTREE.
size=87
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=13793
smb_uid=2048
smb_mid=1
smt_wct=3
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=87 (0x57)
smb_vwv[2]=0 (0x0)
smb_bcc=46
[000] 57 69 6E 64 6F 77 73 20  35 2E 30 00 57 69 6E 64  Windows
5.0.Wind
[010] 6F 77 73 20 32 30 30 30  20 4C 41 4E 20 4D 61 6E  ows 2000  LAN
Man
[020] 61 67 65 72 00 4D 49 4E  44 54 52 45 45 00        ager.MIN DTREE.
Domain=[MINDTREE] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
 session setup ok
write_socket(3,74)
write_socket(3,74) wrote 74
got smb length of 46
size=46
smb_com=0x75
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=2048
smb_pid=13793
smb_uid=2048
smb_mid=1
smt_wct=3
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=46 (0x2E)
smb_vwv[2]=1 (0x1)
smb_bcc=5
[000] 49 50 43 00 00                                    IPC.. 
 tconx ok

	Sharename      Type      Comment
	---------      ----      -------
size=95
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=1
smb_tid=2048
smb_pid=13793
smb_uid=2048
smb_mid=1
smt_wct=14
smb_vwv[0]=19 (0x13)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=1024 (0x400)
smb_vwv[3]=65504 (0xFFE0)
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]=19 (0x13)
smb_vwv[10]=76 (0x4C)
smb_vwv[11]=0 (0x0)
smb_vwv[12]=95 (0x5F)
smb_vwv[13]=0 (0x0)
smb_bcc=32
[000] 5C 50 49 50 45 5C 4C 41  4E 4D 41 4E 00 00 00 57  \PIPE\LA
NMAN...W
[010] 72 4C 65 68 00 42 31 33  42 57 7A 00 01 00 E0 FF  rLeh.B13
BWz.....
write_socket(3,99)
write_socket(3,99) wrote 99
got smb length of 422
size=422
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=2048
smb_pid=13793
smb_uid=2048
smb_mid=1
smt_wct=10
smb_vwv[0]=8 (0x8)
smb_vwv[1]=358 (0x166)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=8 (0x8)
smb_vwv[4]=56 (0x38)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=358 (0x166)
smb_vwv[7]=64 (0x40)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_bcc=367
[000] 00 00 00 7A FE 0B 00 0C  00 43 61 6C 76 69 6E 00  ...z....
.Calvin.
[010] 00 00 00 00 00 00 00 00  00 DF FF 00 00 49 50 43  ........
.....IPC
[020] 24 00 00 00 00 00 00 00  00 00 00 03 00 D4 FF 00  $.......
........
[030] 00 63 64 72 6F 6D 00 00  00 00 00 00 00 00 00 00  .cdrom..
........
[040] 00 D3 FF 00 00 4D 69 72  61 70 6F 69 6E 74 00 00  .....Mir
apoint..
[050] 00 00 00 00 00 BD FF 00  00 47 24 00 00 00 00 00  ........
.G$.....
[060] 00 00 00 00 00 00 00 00  00 AF FF 00 00 44 6F 77  ........
.....Dow
[070] 6E 6C 6F 61 64 73 00 00  00 00 00 00 00 9D FF 00  nloads..
........
[080] 00 6D 75 73 69 63 00 00  00 00 00 00 00 00 00 00  .music..
........
[090] 00 8E FF 00 00 41 44 4D  49 4E 24 00 00 00 00 00  .....ADM
IN$.....
[0A0] 00 00 00 00 00 81 FF 00  00 43 24 00 00 00 00 00  ........
.C$.....
[0B0] 00 00 00 00 00 00 00 00  00 73 FF 00 00 63 64 72  ........
.s...cdr
[0C0] 69 70 70 65 72 00 00 00  00 00 00 00 00 57 FF 00  ipper...
.....W..
[0D0] 00 43 6F 72 65 20 54 65  63 68 00 00 00 00 00 00  .Core Te
ch......
[0E0] 00 56 FF 00 00 00 72 69  70 70 70 70 70 70 70 70  .V....ri
pppppppp
[0F0] 20 61 75 64 69 6F 20 63  64 73 20 74 6F 20 6D 70   audio c ds to
mp
[100] 33 00 44 65 66 61 75 6C  74 20 73 68 61 72 65 00  3.Defaul t
share.
[110] 52 65 6D 6F 74 65 20 41  64 6D 69 6E 00 4B 65 77  Remote A
dmin.Kew
[120] 6C 20 4D 6F 6F 6F 6F 6F  7A 69 6B 00 53 74 75 66  l Mooooo
zik.Stuf
[130] 66 20 79 6F 75 20 64 69  67 20 61 74 21 00 44 65  f you di g
at!.De
[140] 66 61 75 6C 74 20 73 68  61 72 65 00 4D 69 72 61  fault sh
are.Mira
[150] 70 6F 69 6E 74 20 41 73  73 69 67 6E 6D 65 6E 74  point As
signment
[160] 73 00 00 52 65 6D 6F 74  65 20 49 50 43 00 00     s..Remot e IPC..
size=422
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=2048
smb_pid=13793
smb_uid=2048
smb_mid=1
smt_wct=10
smb_vwv[0]=8 (0x8)
smb_vwv[1]=358 (0x166)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=8 (0x8)
smb_vwv[4]=56 (0x38)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=358 (0x166)
smb_vwv[7]=64 (0x40)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_bcc=367
[000] 00 00 00 7A FE 0B 00 0C  00 43 61 6C 76 69 6E 00  ...z....
.Calvin.
[010] 00 00 00 00 00 00 00 00  00 DF FF 00 00 49 50 43  ........
.....IPC
[020] 24 00 00 00 00 00 00 00  00 00 00 03 00 D4 FF 00  $.......
........
[030] 00 63 64 72 6F 6D 00 00  00 00 00 00 00 00 00 00  .cdrom..
........
[040] 00 D3 FF 00 00 4D 69 72  61 70 6F 69 6E 74 00 00  .....Mir
apoint..
[050] 00 00 00 00 00 BD FF 00  00 47 24 00 00 00 00 00  ........
.G$.....
[060] 00 00 00 00 00 00 00 00  00 AF FF 00 00 44 6F 77  ........
.....Dow
[070] 6E 6C 6F 61 64 73 00 00  00 00 00 00 00 9D FF 00  nloads..
........
[080] 00 6D 75 73 69 63 00 00  00 00 00 00 00 00 00 00  .music..
........
[090] 00 8E FF 00 00 41 44 4D  49 4E 24 00 00 00 00 00  .....ADM
IN$.....
[0A0] 00 00 00 00 00 81 FF 00  00 43 24 00 00 00 00 00  ........
.C$.....
[0B0] 00 00 00 00 00 00 00 00  00 73 FF 00 00 63 64 72  ........
.s...cdr
[0C0] 69 70 70 65 72 00 00 00  00 00 00 00 00 57 FF 00  ipper...
.....W..
[0D0] 00 43 6F 72 65 20 54 65  63 68 00 00 00 00 00 00  .Core Te
ch......
[0E0] 00 56 FF 00 00 00 72 69  70 70 70 70 70 70 70 70  .V....ri
pppppppp
[0F0] 20 61 75 64 69 6F 20 63  64 73 20 74 6F 20 6D 70   audio c ds to
mp
[100] 33 00 44 65 66 61 75 6C  74 20 73 68 61 72 65 00  3.Defaul t
share.
[110] 52 65 6D 6F 74 65 20 41  64 6D 69 6E 00 4B 65 77  Remote A
dmin.Kew
[120] 6C 20 4D 6F 6F 6F 6F 6F  7A 69 6B 00 53 74 75 66  l Mooooo
zik.Stuf
[130] 66 20 79 6F 75 20 64 69  67 20 61 74 21 00 44 65  f you di g
at!.De
[140] 66 61 75 6C 74 20 73 68  61 72 65 00 4D 69 72 61  fault sh
are.Mira
[150] 70 6F 69 6E 74 20 41 73  73 69 67 6E 6D 65 6E 74  point As
signment
[160] 73 00 00 52 65 6D 6F 74  65 20 49 50 43 00 00     s..Remot e IPC..
	Calvin         Disk      
	IPC$           IPC       Remote IPC
	cdrom          Disk      
	Mirapoint      Disk      Mirapoint Assignments
	G$             Disk      Default share
	Downloads      Disk      Stuff you dig at!
	music          Disk      Kewl Mooooozik
	ADMIN$         Disk      Remote Admin
	C$             Disk      Default share
	cdripper       Disk      ripppppppp audio cds to mp3
	Core Tech      Disk      

	Server               Comment
	---------            -------
size=111
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=1
smb_tid=2048
smb_pid=13793
smb_uid=2048
smb_mid=1
smt_wct=14
smb_vwv[0]=35 (0x23)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=8 (0x8)
smb_vwv[3]=65535 (0xFFFF)
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]=35 (0x23)
smb_vwv[10]=76 (0x4C)
smb_vwv[11]=0 (0x0)
smb_vwv[12]=111 (0x6F)
smb_vwv[13]=0 (0x0)
smb_bcc=48
[000] 5C 50 49 50 45 5C 4C 41  4E 4D 41 4E 00 68 00 57  \PIPE\LA
NMAN.h.W
[010] 72 4C 65 68 44 7A 00 42  31 36 42 42 44 7A 00 01  rLehDz.B
16BBDz..
[020] 00 FF FF FF FF FF FF 4D  49 4E 44 54 52 45 45 00  .......M
INDTREE.
write_socket(3,115)
write_socket(3,115) wrote 115
got smb length of 64
size=64
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=2048
smb_pid=13793
smb_uid=2048
smb_mid=1
smt_wct=10
smb_vwv[0]=8 (0x8)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=8 (0x8)
smb_vwv[4]=56 (0x38)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=64 (0x40)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_bcc=9
[000] 00 47 00 00 00 00 00 00  00                       .G...... .
size=64
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=2048
smb_pid=13793
smb_uid=2048
smb_mid=1
smt_wct=10
smb_vwv[0]=8 (0x8)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=8 (0x8)
smb_vwv[4]=56 (0x38)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=64 (0x40)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_bcc=9
[000] 00 47 00 00 00 00 00 00  00                       .G...... .
Realloc asked for 0 bytes

	Workgroup            Master
	---------            -------
size=111
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=1
smb_tid=2048
smb_pid=13793
smb_uid=2048
smb_mid=1
smt_wct=14
smb_vwv[0]=35 (0x23)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=8 (0x8)
smb_vwv[3]=65535 (0xFFFF)
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]=35 (0x23)
smb_vwv[10]=76 (0x4C)
smb_vwv[11]=0 (0x0)
smb_vwv[12]=111 (0x6F)
smb_vwv[13]=0 (0x0)
smb_bcc=48
[000] 5C 50 49 50 45 5C 4C 41  4E 4D 41 4E 00 68 00 57  \PIPE\LA
NMAN.h.W
[010] 72 4C 65 68 44 7A 00 42  31 36 42 42 44 7A 00 01  rLehDz.B
16BBDz..
[020] 00 FF FF 00 00 00 80 4D  49 4E 44 54 52 45 45 00  .......M
INDTREE.
write_socket(3,115)
write_socket(3,115) wrote 115
got smb length of 64
size=64
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=2048
smb_pid=13793
smb_uid=2048
smb_mid=1
smt_wct=10
smb_vwv[0]=8 (0x8)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=8 (0x8)
smb_vwv[4]=56 (0x38)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=64 (0x40)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_bcc=9
[000] 00 47 00 00 00 00 00 00  00                       .G...... .
size=64
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=2048
smb_pid=13793
smb_uid=2048
smb_mid=1
smt_wct=10
smb_vwv[0]=8 (0x8)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=8 (0x8)
smb_vwv[4]=56 (0x38)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=64 (0x40)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_bcc=9
[000] 00 47 00 00 00 00 00 00  00                       .G...... .
Realloc asked for 0 bytes

------------------------------------------------------------------------

Ashwin S. Kashyap 
Software Engineer 
MindTree Consulting 
ashwinsk at mindtree.com> 
6528333 Ext. 1215 




More information about the samba mailing list