Bug 15334 - Smbclient command fails with NT_STATUS_OBJECT_PATH_NOT_FOUND error when connecting to smb server with DFS namespace
Summary: Smbclient command fails with NT_STATUS_OBJECT_PATH_NOT_FOUND error when conne...
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other (show other bugs)
Version: 4.14.12
Hardware: All All
: P5 critical (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-13 16:09 UTC by Sravya V
Modified: 2023-03-14 18:07 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 Sravya V 2023-03-13 16:09:46 UTC
Smbclient command fails with NT_STATUS_OBJECT_PATH_NOT_FOUND error when connecting to smb server with DFS namespace. This is seen when DFS is configured in domain controller. If we use the direct file path(IP/FQDN) for the same samba server and same path, this works as expected.

Won't be able to provide complete logs here.

Some pointers from packet capture:
1. we see some DNS TXT packets quering for _kerberos.<hostname>. These are responded with DNS packets with error "No such name TXT _kerberos.<hostname>"
2. Following the DNS packets we also see the KRB5 "TGS-REQ" packet fails with KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN
3. Finally SMB2 "Session Setup Request" fails with "KRB Error: KRB5KRB_AP_ERR_MODIFIED". Post this the smb connection fails with OBJECT_PATH_NOT_FOUND error.

Let us know if you need more details here...
Comment 1 Jeremy Allison 2023-03-13 18:40:50 UTC
Can you give more info about the exact smbclient version and the server you're connecting to ?

At some point we may need sanitized logs.

If your smbclient is not current, I'd appreciate you testing with the latest (4.18.0) smbclient first, as I put some fixes into the smbclient/libsmbclient code w.r.t. DFS in this verison.
Comment 2 Sravya V 2023-03-14 05:12:14 UTC
Hi,

We are using smbclient version 4.14.12.
Comment 3 Jeremy Allison 2023-03-14 18:07:30 UTC
And what server ?