简体   繁体   English

Master Data Services Web 应用程序:未经授权

[英]Master Data Services Web App: Unauthorized

I have a new install of Master Data Services (MDS) 2016 hosted on IIS 8.5 on Windows 2012.我在 Windows 2012 上的 IIS 8.5 上新安装了 Master Data Services (MDS) 2016。

When I browse to the application from IIS on the server with the default bindings the application works fine.当我使用默认绑定从服务器上的 IIS 浏览应用程序时,该应用程序工作正常。 绑定

But if I edit the bindings and add a DNS hostname for the MDS web app when I browse to the application on the server I get a 401 error and I don't know how to resolve this.但是,如果我在浏览到服务器上的应用程序时编辑绑定并为 MDS Web 应用程序添加 DNS 主机名,我会收到 401 错误,我不知道如何解决这个问题。

绑定

MDS 应用程序错误

When browsing to the application remotely from a client workstation using the DNS hostname the application works fine.当使用 DNS 主机名从客户端工作站远程浏览应用程序时,应用程序工作正常。 It's only when browsing to the application on the server itself using the DNS hostname that the application returns a 401 error.只有在使用 DNS 主机名浏览到服务器本身上的应用程序时,应用程序才会返回 401 错误。

The MDS application is running in its own application pool that is running under a Active Directory service account. MDS 应用程序在其自己的应用程序池中运行,该应用程序池在 Active Directory 服务帐户下运行。

We have another server running MDS 2016 with a similar config and this application works fine when browsed on the server and remotely, but I cannot understand why the two servers are behaving differently.我们有另一台使用类似配置运行 MDS 2016 的服务器,该应用程序在服务器上和远程浏览时运行良好,但我不明白为什么两台服务器的行为不同。

UPDATE 1 - Adding missing error information更新 1 - 添加缺少的错误信息

在此处输入图片说明

You need to change the Loop Back Check in registry so that it allows the host names which you are giving in url are allowed and authorized, the solution is some registry hacking to avoid loopback check:您需要更改注册表中的环回检查,以便它允许您在 url 中提供的主机名被允许和授权,解决方案是一些注册表黑客以避免环回检查:

  • Using regedit, navigate to HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\MSV1_0使用 regedit,导航到 HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\MSV1_0
  • Add a new Multi-String Value to MSV1_0 and name it BackConnectionHostNames向 MSV1_0 添加新的多字符串值并将其命名为 BackConnectionHostNames
  • Add the host names you wish to use.添加您要使用的主机名。 In my case, "test.mytestsite.com".就我而言,“test.mytestsite.com”。 Restart the IIS.重新启动 IIS。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM