question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for DFS shares

See original GitHub issue

Hello,

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:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jborean93commented, Mar 11, 2020

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.

1reaction
jborean93commented, Jan 2, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found