-
Notifications
You must be signed in to change notification settings - Fork 18
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
Domain based access #13
Comments
Can you try to use initWithHost:netbiosName:group: directly on the SMBFileServer and pass the domain as netbiosName? |
@schamar I did that but it's not working either. I even passed the group as well but it's still not working. |
@schamar I am trying to connect to a server that have Windows Server 2012 via SMB protocol. I am passing netbiosName as 'domain.local'. Should I have to append the hostname as well? |
Should work as you described. SMBFileServer* server = [[SMBFileServer alloc] initWithHost:<hostname> netbiosName:<domain> group:nil]; [server connectAsUser:<username> password:<password> completion:^(BOOL guest, NSError *error) {...}]; |
Yes, I tried that way but it's not working with the code you mentioned.
When we try with the above code it is able to connect but not able fetch the share list (Access denied) issue.
When we try with this above code it is not even able to connect. |
Can you pull the newest master and then try the new connect method with the explicit domain argument? Init the server similar to this: let fileServer = SMBFileServer.init(host: “192.168.10.2”, netbiosName:“hostname” , group: nil) |
I have pulled the changes from master branch and tried with the above code but still not able to get the list of shared files. Also, Do you think it's something related to security policy for the domain added in Windows server 2012 or later? I tried to access the same server from windows or macOS and able to connect and get the list of file share. |
This is very well possible. Your best bet is to check the server logs and to compare a successful listing of shares with the failed attempt in Wireshark. Filing an issue with libdsm was also a good idea, since the problem probably originates there. This is a similar issue. |
@schamar Thanks, for your prompt responses. I will look into the server logs and get back to you with the following update. Also how difficult is to implement SMBv2/3 library in iOS using native library (sahlberg/libsmb2)? |
Yes, that's our plan. We're currently contacting potentially contributing stakeholders. Work on SMB2/3 support will start in May. Unfortunately neither server discovery nor share listing is supported with that library. |
Duplicate of #11 |
@schamar I have debug the issue by checking the wire shark logs and got some lead on it. Actually, Can you please look into it and see if you can send the signature key and connect to domain based system that 'require security signature' while connecting to it? |
Ok, thank you for the details. Unfortunately this is a problem with libdsm, which does not support security signatures. See this issue I filed two years ago. While it seems MAC OS specific, it reflects the same problem. One of the reasons, why we're aiming for SMB2/3 support. |
Hello,
I have been searching for a good library for SMB for iOS and found yours worth usable. However, I am experiencing an issue with domain based users. I am able to connect with SMB server/pc but not able to get the list of shares (it says 'Access Denied' NT_STATUS_ACCESS_DENIED).
I have checked that it is not connected with guest user as the guest variable is false.
Can you please let me know does your library have ability to connect with domain based servers?
The text was updated successfully, but these errors were encountered: