Hello,
I am trying to connect to a NAS with the SMB library. Previous test with a Raspberry pi worked. Now I have a diskstation and I can not figure out how to connet. I have multiple users and folders.
The question is now what do I have to enter for domain in the credentials and what do I have to enter as url? I suppose the url is the network name of the nas combined with the share name and the folder I want to access.
Any tips on what goes where?
edit: if I do a SMB2.GetDiskFreeSpace("smb://" & url, "") I get success but only for the top most URL without subfolders also with or without setcredentials.
Edit: god damn it it was the v1 disabled again. Does the SMB library support v2? Samba v1 is not very secure.
I am trying to connect to a NAS with the SMB library. Previous test with a Raspberry pi worked. Now I have a diskstation and I can not figure out how to connet. I have multiple users and folders.
B4X:
Dim SMB2 As SMB
SMB2.Initialize("SMB2")
SMB2.SetCredentials(username, passwd, ???)
SMB2.ListFiles("smb://" & url, "")
Any tips on what goes where?
edit: if I do a SMB2.GetDiskFreeSpace("smb://" & url, "") I get success but only for the top most URL without subfolders also with or without setcredentials.
Edit: god damn it it was the v1 disabled again. Does the SMB library support v2? Samba v1 is not very secure.
Last edited: