TOSMBClient
TOSMBClient copied to clipboard
I had set username password of smb server machine but it keep asking username/password.
I had set username password of smb server machine but it keep asking username/password.
Hardware / Software
Which version of the library were you using? Which version of iOS are you running? iOS 10.3.3 What model of iOS device were you testing on? iPhone 7 Plus If using CocoaPods, which version of CocoaPods are you on? No cocoapod. I just run given TOSMBClientExample only.
Goals
What is the outcome result you want to achieve with this library? - I was trying to connect such SMB sever which have username/password to access but it keep asking username password after entering credentials.
Expected Results
What did you expect to happen? - I should accept credentials.
Actual Results
What happened instead? (Please attach a screenshot/screen recording if possible) - It fired an error of authentication failed.
Steps to Reproduce
What are the steps needed to reproduce this issue? If this bug was caused by a specific image, please post it here.
Try to connect such smb server which have username/password to access, I have linux machine, windows machine and mac machine in network, but if that machine can be accessible without password then app connects well, but if I set username/password to access then not working.
Hey Thushar, thanks for filling out the issue properly. :)
The tricky thing with this library is that it can be very finicky depending on the device. CN you please try setting some breakpoints through the code and seeing what sort of error the server is returning?
Ok, I will try to find out exact bug and will let you know.
Cool! Thanks! In the meantime, I just tested the latest version incorporating libdsm 0.2.8 on my MacBook Pro running Sierra 102.12.6 and was able to authenticate successfully with my Mac's username and password.
I'm hoping there might be some edge case in the authentication logic that you're hitting up against. If that's the case, we can probably fix it.
If not, then it might be an issue in libdsm itself.
Hi, Authentication works with local credentials. But not if I have to use domain credentials. I had tried with domain/username and also username@domain. Let me know if you have any idea about it.
Sorry for the delay!
Ahhhhh okay. I think we had this problem with the domain needing to be explicitly set before. I was still working out in which way it should be exposed in the API.
I'll try and fix it soon!
is there any updates on this issue?
@vipsss issue #49 will give u a workaround to solve this problem @TimOliver i think you can merge these two issues as it's the same problem/bug
@beks6 thanks for your replay. but problem is what I follow instructions from issue 49. set domain name as host and ip address and still get authentication error
I‘m not sure if I understand you correctly.
Your approach should be
hostName = domain ipAddress = 192.168.0.1 (or whatever IP your server uses)
@beks6 another question We had network with domain controller. We try connect to windows machine located in domain, for it we use hostName = domain and ipAddress = 192.168.0.10. it works and we can get shared files from this machine. But we can’t connect directly to domain server. We had shared files on this server, but can’t access to files located on this domain server. App every time return authentication error. What a problem can be?
To me it seems like you are missing user credentials.