zhanghai / zhanghai/MaterialFiles

Cannot connect to SMB server

Open
#1,544 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
9k
Forks
736
PR merge metrics
No merged PRs in 30d

Description

I still hope that I did something wrong, but what?!?

Add SMB server
Hostname: studio.home
Port: 445
Path: Either empty, or my username, or /user, or /Users/user
Name: Not filled by me
Authentication: Password
Username: user
Password: My password

With exactly the same data, I can connect with "SambaLite" App!
But it also requires the share name, in this case, just my username (for other shares something like "MEDIA")

So, it is already unexpected that I cannot enter the name of the share - the server offers several!

Anyways, I only get error messages:

java8.nio.file.AccessDeniedException: /user: com.hierynomus.mssmb2.SMBApiException: STATUS_LOGON_FAILURE (0xc000006d): Authentication failed for 'user' using U3.f@ceba84b

I tried all variants I could think of.

My mistake?
A bug?
Another problem?

Great many thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Add SMB server flow and reproduce the failure using the supplied hostname, port, path, share, and credentials. Trace how the share name and authentication data reach the SMB connection, then verify the result against the reported STATUS_LOGON_FAILURE and support for servers offering multiple shares.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
authentication, mobile, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.