Tree_connect returns duplicate_name error

Matt Seitz seitz at metadata-systems.com
Tue Mar 2 22:32:38 GMT 2004


I am using cli_send_tconX to connect to a Windows 2003 share.  This has been 
working fine for some time.  Today, my Windows server returned a 
NT_STATUS_DUPLICATE_NAME result.  An Ethereal capture (attached) shows the Tree 
Connect is being sent, and the server replying with the NT_STATUS_DUPLICATE_NAME 
result code.

How can a Tree_Connect command result in an NT_STATUS_DUPLICATE_NAME error?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tcon_dup_name.marked.cap
Type: application/octet-stream
Size: 323 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20040302/b2fc2864/tcon_dup_name.marked.obj
-------------- next part --------------
Frame 17 (162 bytes on wire, 162 bytes captured)
    Arrival Time: Mar  2, 2004 13:49:33.505485000
    Time delta from previous packet: 1.377266000 seconds
    Time since reference or first frame: 1.380485000 seconds
    Frame Number: 17
    Packet Length: 162 bytes
    Capture Length: 162 bytes
Ethernet II, Src: 00:07:e9:7e:9d:c6, Dst: 00:0c:29:90:c3:dd
    Destination: 00:0c:29:90:c3:dd (Vmware_90:c3:dd)
    Source: 00:07:e9:7e:9d:c6 (Intel_7e:9d:c6)
    Type: IP (0x0800)
Internet Protocol, Src Addr: 192.168.66.62 (192.168.66.62), Dst Addr: 192.168.66.2 (192.168.66.2)
    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: 148
    Identification: 0xf0f1 (61681)
    Flags: 0x04
        .1.. = Don't fragment: Set
        ..0. = More fragments: Not set
    Fragment offset: 0
    Time to live: 64
    Protocol: TCP (0x06)
    Header checksum: 0x43e1 (correct)
    Source: 192.168.66.62 (192.168.66.62)
    Destination: 192.168.66.2 (192.168.66.2)
Transmission Control Protocol, Src Port: 36005 (36005), Dst Port: microsoft-ds (445), Seq: 2627363689, Ack: 936743946, Len: 96
    Source port: 36005 (36005)
    Destination port: microsoft-ds (445)
    Sequence number: 2627363689
    Next sequence number: 2627363785
    Acknowledgement number: 936743946
    Header length: 32 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: 7504
    Checksum: 0x1728 (correct)
    Options: (12 bytes)
        NOP
        NOP
        Time stamp: tsval 414697588, tsecr 101949
NetBIOS Session Service
    Message Type: Session message
    Length: 92
SMB (Server Message Block Protocol)
    SMB Header
        Server Component: SMB
        Response in: 18
        SMB Command: Tree Connect AndX (0x75)
        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
        Process ID High: 0
        Signature: 0000000000000000
        Reserved: 0000
        Tree ID: 0
        Process ID: 6983
        User ID: 2049
        Multiplex ID: 4
    Tree Connect AndX Request (0x75)
        Word Count (WCT): 4
        AndXCommand: No further commands (0xff)
        Reserved: 00
        AndXOffset: 0
        Flags: 0x0000
            .... .... .... ...0 = Disconnect TID: Do NOT disconnect TID
        Password Length: 1
        Byte Count (BCC): 49
        Password: 00
        Path: \\SEITZ2003S3BK\DEMO
        Service: ?????

Frame 18 (105 bytes on wire, 105 bytes captured)
    Arrival Time: Mar  2, 2004 13:49:33.506125000
    Time delta from previous packet: 0.000640000 seconds
    Time since reference or first frame: 1.381125000 seconds
    Frame Number: 18
    Packet Length: 105 bytes
    Capture Length: 105 bytes
Ethernet II, Src: 00:0c:29:90:c3:dd, Dst: 00:07:e9:7e:9d:c6
    Destination: 00:07:e9:7e:9d:c6 (Intel_7e:9d:c6)
    Source: 00:0c:29:90:c3:dd (Vmware_90:c3:dd)
    Type: IP (0x0800)
Internet Protocol, Src Addr: 192.168.66.2 (192.168.66.2), Dst Addr: 192.168.66.62 (192.168.66.62)
    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: 91
    Identification: 0x288d (10381)
    Flags: 0x04
        .1.. = Don't fragment: Set
        ..0. = More fragments: Not set
    Fragment offset: 0
    Time to live: 128
    Protocol: TCP (0x06)
    Header checksum: 0xcc7e (correct)
    Source: 192.168.66.2 (192.168.66.2)
    Destination: 192.168.66.62 (192.168.66.62)
Transmission Control Protocol, Src Port: microsoft-ds (445), Dst Port: 36005 (36005), Seq: 936743946, Ack: 2627363785, Len: 39
    Source port: microsoft-ds (445)
    Destination port: 36005 (36005)
    Sequence number: 936743946
    Next sequence number: 936743985
    Acknowledgement number: 2627363785
    Header length: 32 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: 16543
    Checksum: 0x9339 (correct)
    Options: (12 bytes)
        NOP
        NOP
        Time stamp: tsval 102502, tsecr 414697588
NetBIOS Session Service
    Message Type: Session message
    Length: 35
SMB (Server Message Block Protocol)
    SMB Header
        Server Component: SMB
        Response to: 17
        Time from request: 0.000640000 seconds
        SMB Command: Tree Connect AndX (0x75)
        NT Status: STATUS_DUPLICATE_NAME (0xc00000bd)
        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
        Process ID High: 0
        Signature: 0000000000000000
        Reserved: 0000
        Tree ID: 0
        Process ID: 6983
        User ID: 2049
        Multiplex ID: 4
    Tree Connect AndX Response (0x75)
        Word Count (WCT): 0
        Byte Count (BCC): 0


More information about the samba-technical mailing list