How to implement Windows auth in Linux container

Hi,

We’d like to setup HTTP API endpoints in PSU in a Linux container with Windows auth to incoming requests. All incoming requests will have NTLM tokens.

I’ve taken a look at this link:

Security - PowerShell Universal

And in the linux section it points to: Configure Windows Authentication in ASP.NET Core | Microsoft Learn

Questions:

  1. Does the Linux container version of PSU (dockerhub image) support Windows authentication?
  2. If #1 is possible, is there a specific HowTo that could be provided? For example, the Microsoft article mentions joining the domain but a container cannot join a domain as far as I know.

Thanks!

Product: PowerShell Universal
Version: 1.4.6

We currently don’t have a step-by-step for this but I don’t see why you couldn’t join the container to a domain. The container is based on Ubuntu.

You should be able to run these commands in your dockerfile. I assume you’ll need a static host name for the container so that it doesn’t create a new machine account with each deployment.