-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enumshare: instead of names list, the letters of the drive #40
Comments
It works as intended. Each share has its own type. $ suffix means special type. You can filter it out by using |
hello, using smbclient the list of the share are:
using go-smb2 example file:
why the sharename aren't show as smbclient? |
Can you elaborate? Are you saying that |
Hi, the problem occurs only towards some windows servers. The ListSharenames shows me the letters of the Share and not the name as I reported in the example above. Example: If the sharename is TestShare the ListSharenames show H$ while the smbclient show TestShare. I don't know where is the problem, ask me what it takes to understand how to identify the problem. thank you. |
Can you ensure that |
So, you meant |
No the number of "share" displayed from smbclient are more than those shown by smblistshare output: 34 vs 24.
No, my setup has already a minimum of SMB2
and if try to force SMB1 (smbclient -m SMB1):
|
If I were in your shoes, I would run wireshark and compare the difference. |
Thank you for the mail. Honestly I don't know this behavior..., but I came up with another idea.
|
what to put in place of |
sntsmb01.XXXXX.local |
😄 ok but I need the generic solution, that's just a test against a server that do not work . I mean, what is the member of the session data that contains the servername? |
obviously it works! I'll wait the fix 😄 👍🏻 |
Unfortunately, there are no way to recover server name from Could you try out following patch?
|
hi, doesn't work |
Oh, that's sad news 😢 |
Hi, I'm old school 😄 so I'v add a print of c.host: SFSMC01N010.XXXX.local why does this hostname? |
I also noticed that difference. I guess NETBIOS settings and DNS settings are conflicting somehow? |
unfortunately I don't have access to the server so I have no idea. |
I'm suspecting that https://superuser.com/questions/1240213/cannot-connect-to-windows-share-via-local-network-ip-address-but-can-by-localhost is the same issue. so it's something related to NETBIOS. |
umm but if it was a windows bug why does smbclient (from samba) work? You get the servername from sessionSetup, the same answer there is smbclient but he in Tree Connect Request Tree use the right name and not from the sessionSetup response. |
|
@hirochachacha wrote:
We could introduce a Would you accept a PR with that sort of change? I agree doing the whole PS thank you for a great library - we put it in rclone recently and it works extremely well :-) |
Hi maybe it's not a library problem but trying and listing the share names I get the letter list:
using smbclient the names are listed correctly. Has anyone had this problem?
The text was updated successfully, but these errors were encountered: