Add support for DFS shares
See original GitHub issueHello,
I am getting this error when I try to used it with my File Server. On the Microsoft doc it seems related to STATUS_PATH_NOT_COVERED. Im trying with the full DFS share name but impossible. Is smbprotocol support DFS ? Or any idea of what should I used ?
smbprotocol.exceptions.SMBResponseException: Received unexpected status from the server: (3221226071) UNKNOWN_ENUM: 0xc0000257
Impossible to list the root of any share and any directories from share.
Thank for your hints 😃
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
DFS Namespaces overview - Microsoft Learn
This topic describes DFS Namespaces, which is a role service in Windows Server enabling you to group shared folders located on different ...
Read more >How to setup DFS share in your environment - ManageEngine
To setup Namespaces: Go to DFS Management. Right click on Namespaces in the left panel and click New Namespace. Enter the name of...
Read more >Distributed File System namespace support - Apple Support
Learn how to access DFS namespace systems. ... macOS supports traversing Distributed File System (DFS) namespaces. A Mac bound to Active Directory can...
Read more >How to Configure DFS Replication for Windows Server?
In this case, DFS can help you optimize the hierarchy of shared folders to streamline ... Click Add Roles and Features in Server...
Read more >Mount DFS Shares within Linux - NC State Active Directory
Mount DFS Shares within Linux · You will probably want to specify the same uid and gid as the user account you are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The only other python library I know that does SMB is pysmb but that does not support it.
DFS support is quite complex and not easy to implement. There’s a reason why it doesn’t work in a lot of 3rd party libraries. You can try and resolve one of the ~time~ file servers behind your DFS name then you can access it like any normal SMB server.
Unfortunately smbprotocol does not yet support DFS, it may work in some situations but things like referrals of when the DFS path is for a folder/file on another server it will fail. It’s something I do want to add at some point in the future but this is not a trivial task. Just looking at https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-dfsc/1ff7d611-ba19-49fb-95f4-7c5358b86834 shows you how many branching steps there are.
I will edit the issue title to better reflect this as a request to support DFS.