TOSMBClient icon indicating copy to clipboard operation
TOSMBClient copied to clipboard

I had set username password of smb server machine but it keep asking username/password.

Open tnavadiya opened this issue 8 years ago • 11 comments
trafficstars

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.

tnavadiya avatar Sep 11 '17 14:09 tnavadiya

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?

TimOliver avatar Sep 11 '17 22:09 TimOliver

Ok, I will try to find out exact bug and will let you know.

tnavadiya avatar Sep 12 '17 03:09 tnavadiya

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.

TimOliver avatar Sep 12 '17 05:09 TimOliver

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.

tnavadiya avatar Sep 12 '17 10:09 tnavadiya

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!

TimOliver avatar Nov 01 '17 07:11 TimOliver

is there any updates on this issue?

vipsss avatar Apr 06 '18 07:04 vipsss

@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 avatar Apr 06 '18 08:04 beks6

@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

vipsss avatar Apr 06 '18 12:04 vipsss

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 avatar Apr 06 '18 16:04 beks6

@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?

vipsss avatar Apr 12 '18 12:04 vipsss

To me it seems like you are missing user credentials.

beks6 avatar Apr 13 '18 10:04 beks6