PowerShell / PowerShell/Win32-OpenSSH

%u is expand to domain\User

Open
#1,691 15 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
8.3k
Forks
819
PR merge metrics
No merged PRs in 30d

Description

"OpenSSH for Windows" version
8.1

Server OperatingSystem
Windows Server 2016

I want to use chroot. While %h is not expand to the homedir configured in the AD i use something like D:\homes%u. But unfortunately %u is expand to domain\username. I would expect, %u will be expand to the username.

I think to expand %u the Windows-NT/Prä Windows 2000 Username ist used.

Example:
I tried to use D:\homes\sub%u for chroot-directory. But this will redirect the user to D:\homes\sub<domainname><username>, and of course, this folder doesn't exist.

Contributor guide

Open the contributing guide

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 OpenSSH for Windows 8.1 chroot configuration using D:\homes\sub%u with an Active Directory account on Windows Server 2016. Trace how %u is expanded and how the Windows account name is selected; done means the chroot path uses the username rather than domain\username, without changing the expected behavior of other tokens.

Written by the indexing model from the issue text.

Assessment

Domain
authentication, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.