Skip to content
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

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

Open
tnavadiya opened this issue Sep 11, 2017 · 11 comments
Labels

Comments

@tnavadiya
Copy link

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.

@TimOliver
Copy link
Owner

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?

@tnavadiya
Copy link
Author

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

@TimOliver
Copy link
Owner

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.

@tnavadiya
Copy link
Author

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.

@TimOliver
Copy link
Owner

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 TimOliver added the bug label Nov 1, 2017
@vipsss
Copy link

vipsss commented Apr 6, 2018

is there any updates on this issue?

@beks6
Copy link

beks6 commented Apr 6, 2018

@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

@vipsss
Copy link

vipsss commented Apr 6, 2018

@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

@beks6
Copy link

beks6 commented Apr 6, 2018

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)

@vipsss
Copy link

vipsss commented Apr 12, 2018

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

@beks6
Copy link

beks6 commented Apr 13, 2018

To me it seems like you are missing user credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants