웹사이트로 설치된 iis에서 netcore 앱으로 통합 보안을 사용할 수 없습니다.

웹사이트로 설치된 iis에서 netcore 앱으로 통합 보안을 사용할 수 없습니다.

CNTLM을 통해 로그인한 사용자를 반환하는 netcore(2.1.401)에 작은 테스트 프로젝트가 있습니다. [이 가이드]에 따라 IIS 서버에 배포했습니다. 또한 호스트 파일에 웹사이트를 추가했습니다.

기본 웹 사이트 내에 애플리케이션으로 배포하면 제대로 작동합니다. 그러나 Anonymous auth비활성화 및 활성화된 웹 사이트로 이를 수행하려고 하면 Windows auth자격 증명을 여러 번 입력해야 하고 결국 다음 오류가 발생합니다.

HTTP Error 401.1 - Unauthorized

You do not have permission to view this directory or page using the credentials that you supplied.

Detailed Error Information:
Module   WindowsAuthenticationModule 
Notification   AuthenticateRequest 
Handler   aspNetCore 
Error Code   0xc000006d 
Requested URL   http://iis.localhost.net:80/user 
Physical Path   C:\inetpub\wwwroot\iis\user 
Logon Method   Not yet determined 
Logon User   Not yet determined 

다음과 같이 web.config 파일에 자신을 추가해 보았습니다.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <location path="." inheritInChildApplications="false">
        <system.webServer>
            <handlers>
                <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
            </handlers>
            <aspNetCore processPath=".\iis.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
            <security>
                <authorization>
                    <allow users="mydomain\myuser" />
                    <deny users="*" />
                </authorization>
            </security>
        </system.webServer>
    </location>
</configuration>

저는 Windows Server 2016 Datacenter, IIS 10.0.14393.0을 사용하고 있습니다.

관련 정보