perform windows authentication from apache with .NETCORE

  .net, apache, authentication, core, windows

I need some help to configure Windows authentication from apache.
What I’ve done so far is:

  1. I create a new simple project (the default) of .net core from visual studio.
  2. I add this line: services.AddAuthentication(NegotiateDefaults.AuthenticationScheme).AddNegotiate();
    to the Startup.ConfigureServices.
  3. this line: app.UseAuthentication(); to the Startup.Configure.
  4. if I run the project from the IIS, I was able to see the user.
  5. if I run the project from apachi (centos) i get this:
    fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1] An unhandled exception has occurred while executing the request.
    System.PlatformNotSupportedException: Windows Principal functionality is not supported on this platform.
    at System.Security.Principal.WindowsIdentity.GetCurrent()
  6. The machine is joined to the domain.

Anyone can help me with the steps, I sure that there is other thing I need to configure (SPN, Service account) but I don’t now the order and the steps.

I appreciate any help.
Thanks in advance

Source: Windows Questions