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

Connected but could not find share folders on windows network #11

Open
TechnosoftIE opened this issue Apr 17, 2018 · 5 comments
Open

Connected but could not find share folders on windows network #11

TechnosoftIE opened this issue Apr 17, 2018 · 5 comments

Comments

@TechnosoftIE
Copy link

Hi,
I can connect with a machine on windows network but it does not list share folders. The error i get is:

(Error Domain=dsmerror Code=3 "SMB error" UserInfo={NSUnderlyingError=0x14788e40 {Error Domain=nt.error Code=22 "Access denied" UserInfo={NSLocalizedDescription=Access denied}}, NSLocalizedDescription=SMB error})

@schamar
Copy link
Contributor

schamar commented Apr 22, 2018

I can only assume, that "access denied" is indeed the case. Check if the login falls back to guest access.

@TechnosoftIE
Copy link
Author

Further investigation: Error occurs on Windows Server 2012. Could it be due to SMB supported version etc on 2012.

@schamar
Copy link
Contributor

schamar commented Apr 23, 2018

Possibly. Currently smb v1 is the only supported option.

@TechnosoftIE
Copy link
Author

TechnosoftIE commented Apr 23, 2018

Confirmed SMB1 is enabled. It does handshake successfully as WireShark capture shows but when listing shares it fails.
It works if PC is i workgroup but when in domain it gives AccessDenied. Tried with user who has administrator access in domain and on local system users. But same error.

@schamar
Copy link
Contributor

schamar commented Apr 24, 2018

Can you try to use initWithHost:netbiosName:group: directly on the SMBFileServer and pass the domain as netbiosName?

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

No branches or pull requests

2 participants