Shares names as Unicode
Гамид Исаев
gamid at netilla.com
Thu Aug 15 08:26:00 GMT 2002
> smbclient -L <host_name>
> smbclient receives share names as non-Unicode strings.
Some details:
in the NetShareEnum response packet flag (Flag2) set to 'Unicode
Strings: Strings are Unicode', but in the 'Available Shares' list share
names are non-Unicode (see attachment).
Does anyone know what causes this problem?
Gamid Isayev
-------------- next part --------------
Frame 100 (167 on wire, 167 captured)
Arrival Time: Aug 14, 2002 14:26:22.858573000
Time delta from previous packet: 0.000429000 seconds
Time relative to first packet: 5.655545000 seconds
Frame Number: 100
Packet Length: 167 bytes
Capture Length: 167 bytes
Ethernet II
Destination: 00:50:56:40:7e:ab (gamid.hq.netilla.com)
Source: 00:e0:81:20:a5:71 (mono.private)
Type: IP (0x0800)
Internet Protocol, Src Addr: mono.private (192.168.1.48), Dst Addr: gamid.hq.netilla.com (192.168.1.99)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 153
Identification: 0xd9d4
Flags: 0x04
.1.. = Don't fragment: Set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 64
Protocol: TCP (0x06)
Header checksum: 0xdca6 (correct)
Source: mono.private (192.168.1.48)
Destination: gamid.hq.netilla.com (192.168.1.99)
Transmission Control Protocol, Src Port: 40389 (40389), Dst Port: microsoft-ds (445), Seq: 107562318, Ack: 1951351558
Source port: 40389 (40389)
Destination port: microsoft-ds (445)
Sequence number: 107562318
Next sequence number: 107562431
Acknowledgement number: 1951351558
Header length: 20 bytes
Flags: 0x0018 (PSH, ACK)
0... .... = Congestion Window Reduced (CWR): Not set
.0.. .... = ECN-Echo: Not set
..0. .... = Urgent: Not set
...1 .... = Acknowledgment: Set
.... 1... = Push: Set
.... .0.. = Reset: Not set
.... ..0. = Syn: Not set
.... ...0 = Fin: Not set
Window size: 5840
Checksum: 0xfd5e (correct)
NetBIOS Session Service
Message Type: Session message
Length: 109
SMB (Server Message Block Protocol)
SMB Header
Server Component: SMB
Response in: 101
SMB Command: Transaction (0x25)
NT Status: STATUS_SUCCESS (0x00000000)
Flags: 0x08
0... .... = Request/Response: Message is a request to the server
.0.. .... = Notify: Notify client only on open
..0. .... = Oplocks: OpLock not requested/granted
...0 .... = Canonicalized Pathnames: Pathnames are not canonicalized
.... 1... = Case Sensitivity: Path names are caseless
.... ..0. = Receive Buffer Posted: Receive buffer has not been posted
.... ...0 = Lock and Read: Lock&Read, Write&Unlock are not supported
Flags2: 0xc801
1... .... .... .... = Unicode Strings: Strings are Unicode
.1.. .... .... .... = Error Code Type: Error codes are NT error codes
..0. .... .... .... = Execute-only Reads: Don't permit reads if execute-only
...0 .... .... .... = Dfs: Don't resolve pathnames with Dfs
.... 1... .... .... = Extended Security Negotiation: Extended security negotiation is supported
.... .... .0.. .... = Long Names Used: Path names in request are not long file names
.... .... .... .0.. = Security Signatures: Security signatures are not supported
.... .... .... ..0. = Extended Attributes: Extended attributes are not supported
.... .... .... ...1 = Long Names Allowed: Long file names are allowed in the response
Reserved: 000000000000000000000000
Tree ID: 2048
Process ID: 11895
User ID: 2048
Multiplex ID: 1
Transaction Request (0x25)
Word Count (WCT): 14
Total Parameter Count: 19
Total Data Count: 0
Max Parameter Count: 1024
Max Data Count: 65504
Max Setup Count: 0
Reserved: 00
Flags: 0x0000
.... .... .... ..0. = One Way Transaction: Two way transaction
.... .... .... ...0 = Disconnect TID: Do NOT disconnect TID
Timeout: Return immediately (0)
Reserved: 0000
Parameter Count: 19
Parameter Offset: 90
Data Count: 0
Data Offset: 109
Setup Count: 0
Reserved: 00
Byte Count (BCC): 46
Transaction Name: \PIPE\LANMAN
SMB Pipe Protocol
Microsoft Windows Lanman Remote API Protocol
Function Code: NetShareEnum (0)
Parameter Descriptor: WrLeh
Return Descriptor: B13BWz
Detail Level: 1
Receive Buffer Length: 65504
0000 00 50 56 40 7e ab 00 e0 81 20 a5 71 08 00 45 00 .PV@~.... .q..E.
0010 00 99 d9 d4 40 00 40 06 dc a6 c0 a8 01 30 c0 a8 .... at .@......0..
0020 01 63 9d c5 01 bd 06 69 45 4e 74 4f 43 06 50 18 .c.....iENtOC.P.
0030 16 d0 fd 5e 00 00 00 00 00 6d ff 53 4d 42 25 00 ...^.....m.SMB%.
0040 00 00 00 08 01 c8 00 00 00 00 00 00 00 00 00 00 ................
0050 00 00 00 08 77 2e 00 08 01 00 0e 13 00 00 00 00 ....w...........
0060 04 e0 ff 00 00 00 00 00 00 00 00 00 00 13 00 5a ...............Z
0070 00 00 00 6d 00 00 00 2e 00 00 5c 00 50 00 49 00 ...m......\.P.I.
0080 50 00 45 00 5c 00 4c 00 41 00 4e 00 4d 00 41 00 P.E.\.L.A.N.M.A.
0090 4e 00 00 00 00 00 57 72 4c 65 68 00 42 31 33 42 N.....WrLeh.B13B
00a0 57 7a 00 01 00 e0 ff Wz.....
-------------- next part --------------
Frame 101 (296 on wire, 296 captured)
Arrival Time: Aug 14, 2002 14:26:22.872809000
Time delta from previous packet: 0.014236000 seconds
Time relative to first packet: 5.669781000 seconds
Frame Number: 101
Packet Length: 296 bytes
Capture Length: 296 bytes
Ethernet II
Destination: 00:e0:81:20:a5:71 (mono.private)
Source: 00:50:56:40:7e:ab (gamid.hq.netilla.com)
Type: IP (0x0800)
Internet Protocol, Src Addr: gamid.hq.netilla.com (192.168.1.99), Dst Addr: mono.private (192.168.1.48)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 282
Identification: 0x0bf0
Flags: 0x04
.1.. = Don't fragment: Set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 128
Protocol: TCP (0x06)
Header checksum: 0x6a0a (correct)
Source: gamid.hq.netilla.com (192.168.1.99)
Destination: mono.private (192.168.1.48)
Transmission Control Protocol, Src Port: microsoft-ds (445), Dst Port: 40389 (40389), Seq: 1951351558, Ack: 107562431
Source port: microsoft-ds (445)
Destination port: 40389 (40389)
Sequence number: 1951351558
Next sequence number: 1951351800
Acknowledgement number: 107562431
Header length: 20 bytes
Flags: 0x0018 (PSH, ACK)
0... .... = Congestion Window Reduced (CWR): Not set
.0.. .... = ECN-Echo: Not set
..0. .... = Urgent: Not set
...1 .... = Acknowledgment: Set
.... 1... = Push: Set
.... .0.. = Reset: Not set
.... ..0. = Syn: Not set
.... ...0 = Fin: Not set
Window size: 16736
Checksum: 0xab7c (correct)
NetBIOS Session Service
Message Type: Session message
Length: 238
SMB (Server Message Block Protocol)
SMB Header
Server Component: SMB
Response to: 100
SMB Command: Transaction (0x25)
NT Status: STATUS_SUCCESS (0x00000000)
Flags: 0x88
1... .... = Request/Response: Message is a response to the client/redirector
.0.. .... = Notify: Notify client only on open
..0. .... = Oplocks: OpLock not requested/granted
...0 .... = Canonicalized Pathnames: Pathnames are not canonicalized
.... 1... = Case Sensitivity: Path names are caseless
.... ..0. = Receive Buffer Posted: Receive buffer has not been posted
.... ...0 = Lock and Read: Lock&Read, Write&Unlock are not supported
Flags2: 0xc801
1... .... .... .... = Unicode Strings: Strings are Unicode
.1.. .... .... .... = Error Code Type: Error codes are NT error codes
..0. .... .... .... = Execute-only Reads: Don't permit reads if execute-only
...0 .... .... .... = Dfs: Don't resolve pathnames with Dfs
.... 1... .... .... = Extended Security Negotiation: Extended security negotiation is supported
.... .... .0.. .... = Long Names Used: Path names in request are not long file names
.... .... .... .0.. = Security Signatures: Security signatures are not supported
.... .... .... ..0. = Extended Attributes: Extended attributes are not supported
.... .... .... ...1 = Long Names Allowed: Long file names are allowed in the response
Reserved: 000000000000000000000000
Tree ID: 2048
Process ID: 11895
User ID: 2048
Multiplex ID: 1
Transaction Response (0x25)
Word Count (WCT): 10
Total Parameter Count: 8
Total Data Count: 174
Reserved: 0000
Parameter Count: 8
Parameter Offset: 56
Parameter Displacement: 0
Data Count: 174
Data Offset: 64
Data Displacement: 0
Setup Count: 0
Reserved: 00
Byte Count (BCC): 183
Padding: 00
SMB Pipe Protocol
Microsoft Windows Lanman Remote API Protocol
Function Code: NetShareEnum (0)
Status: Success (0)
Convert: 65330
Entry Count: 6
Available Entries: 6
Available Shares
Share temp÷
Share Name: temp÷
Share Type: Directory tree (0)
Share Comment:
Share IPC$
Share Name: IPC$
Share Type: IPC (3)
Share Comment: Remote IPC
Share D$
Share Name: D$
Share Type: Directory tree (0)
Share Comment: Default share
Share tmp?
Share Name: tmp?
Share Type: Directory tree (0)
Share Comment:
Share ADMIN$
Share Name: ADMIN$
Share Type: Directory tree (0)
Share Comment: Remote Admin
Share C$
Share Name: C$
Share Type: Directory tree (0)
Share Comment: Default share
0000 00 e0 81 20 a5 71 00 50 56 40 7e ab 08 00 45 00 ... .q.PV@~...E.
0010 01 1a 0b f0 40 00 80 06 6a 0a c0 a8 01 63 c0 a8 .... at ...j....c..
0020 01 30 01 bd 9d c5 74 4f 43 06 06 69 45 bf 50 18 .0....tOC..iE.P.
0030 41 60 ab 7c 00 00 00 00 00 ee ff 53 4d 42 25 00 A`.|.......SMB%.
0040 00 00 00 88 01 c8 00 00 00 00 00 00 00 00 00 00 ................
0050 00 00 00 08 77 2e 00 08 01 00 0a 08 00 ae 00 00 ....w...........
0060 00 08 00 38 00 00 00 ae 00 40 00 00 00 00 00 b7 ...8..... at ......
0070 00 00 00 00 32 ff 06 00 06 00 74 65 6d 70 9f 00 ....2.....temp..
0080 00 00 00 00 00 00 00 00 00 00 df ff 00 00 49 50 ..............IP
0090 43 24 00 00 00 00 00 00 00 00 00 00 03 00 d4 ff C$..............
00a0 00 00 44 24 00 00 00 00 00 00 00 00 00 00 00 00 ..D$............
00b0 00 00 c6 ff 00 00 74 6d 70 3f 00 00 00 00 00 00 ......tmp?......
00c0 00 00 00 00 00 00 c5 ff 00 00 41 44 4d 49 4e 24 ..........ADMIN$
00d0 00 00 00 00 00 00 00 00 00 00 b8 ff 00 00 43 24 ..............C$
00e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 aa ff ................
00f0 00 00 44 65 66 61 75 6c 74 20 73 68 61 72 65 00 ..Default share.
0100 52 65 6d 6f 74 65 20 41 64 6d 69 6e 00 00 44 65 Remote Admin..De
0110 66 61 75 6c 74 20 73 68 61 72 65 00 52 65 6d 6f fault share.Remo
0120 74 65 20 49 50 43 00 00 te IPC..
More information about the samba-technical
mailing list