hirochachacha / go-smb2

SMB2/3 client library written in Go.
BSD 2-Clause "Simplified" License
350 stars 94 forks source link

are DFS referrals/lookups handled? #69

Open tooptoop4 opened 1 year ago

tooptoop4 commented 1 year ago

i get error like https://stackoverflow.com/questions/63933457/open-a-micrsoft-dfs-share-in-golang-using-smb2

similar to https://github.com/hierynomus/smbj/pull/256 functionality

image

https://github.com/siemens/GoScans/blob/48c07101ed3cf1815928b1809f2462d89318eb29/smb/smb_windows.go seems to have some code for handling DFS

more info on DFS: https://wiki.samba.org/index.php/Distributed_File_System_(DFS) https://www.samba.org/samba/docs/using_samba/ch08.html https://learn.microsoft.com/en-us/windows-server/storage/dfs-namespaces/dfs-overview

cc @hirochachacha

ashutoshbhole-Druva commented 1 year ago

Hi @tooptoop4, I have implemented the DFS code. Kindly take a look at this PR: https://github.com/hirochachacha/go-smb2/pull/79 and do provide your suggestions.