-
Notifications
You must be signed in to change notification settings - Fork 86
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
smb_share_get_list always returns -2 #127
Comments
You should debug and step-in to see why the value is -2. Is it SMBv2 server? |
@jbkempf thank for your reply. The server is running Windows Server 2008, so it should be using SMBv2. Is there something that can be done to the server to make this library work? |
I don't know. Maybe libdsm only works with SMBv1, but that would be strange, for detection. |
I have got same issue, but my case is not the issue with the signing. You may double check your WORKGROUP name
if WORKGROUP is right, then smb_share_get_list will work |
See #122 |
I have the following code:
The result is always -2.
I have checked to ensure that "smb_session_login" and "smb_session_is_guest" both returns 0. So it means I am connected to the file server correctly. But I cannot seem to get the share list.
Can anyone point me in the right direction to solving this issue? Help is much appreciated.
The text was updated successfully, but these errors were encountered: