microsoft / microsoft/Windows-Containers

SmbGlobalMapping Username and Domain is set to Null/Null after beeing mounted

Open
#604 19 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug triage
Dominant language
PowerShell
Stars
551
Forks
76
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
After an SMB Share is mounted using a SmbGlobalMapping (using https://learn.microsoft.com/en-us/powershell/module/smbshare/new-smbglobalmapping?view=windowsserver2019-ps), the initial authentication request does contains the username and domain specified with the -credential option but when the global mapping is used under windows container/docker, it contains NULL/NULL. It does lead to try to establish a session for every file read/write and can also lead to network port exhaustion if the NAS Provider does not support those null/null

Image

To Reproduce

  1. Mount a SmbGlobalMapping using using https://learn.microsoft.com/en-us/powershell/module/smbshare/new-smbglobalmapping?view=windowsserver2019-ps
  2. Start a docker with a -v option
  3. Take some network capture with Wireshark

Expected behavior
We expect authentification token to contains the user given with the -credentials option when mounted the folder

Configuration:

  • Windows Server 2019

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 by reproducing the Windows Server 2019 scenario with New-SmbGlobalMapping, a Docker volume mount, and a Wireshark capture. Compare the initial authentication request with requests made through the container; done means the specified username and domain are preserved instead of becoming NULL/NULL and repeated session attempts stop.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, powershell
Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.